Skip to content
This repository has been archived by the owner on Jul 12, 2020. It is now read-only.

Workspace does not inherit Model in Lemur #148

Open
Kampfkarren opened this issue Oct 22, 2018 · 0 comments
Open

Workspace does not inherit Model in Lemur #148

Kampfkarren opened this issue Oct 22, 2018 · 0 comments

Comments

@Kampfkarren
Copy link
Contributor

But does in Roblox, which means this code:

return function(part)
	if part.Parent == nil then return end

	local parent = part

	repeat
		parent = parent.Parent

		if parent:FindFirstChild("Humanoid") then
			return parent
		end
	until parent:IsA("Model")
end

needs to be written as

return function(part)
	if part.Parent == nil then return end

	local parent = part

	repeat
		parent = parent.Parent

		if parent:FindFirstChild("Humanoid") then
			return parent
		end
	until parent:IsA("Model") or parent:IsA("Workspace")
end
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants