So, I was developing something. And suddenly, something came in that I don't know how to fix. In this case, here's what I did..
local char = script.Parent.Parent:WaitForChild("Humanoid") local cheese = script.Parent:WaitForChild(script.Parent.Parent.Cheese) if char.Health == 0 then cheese.Parent = workspace cheese.Handle.Position = Vector3.new(-42.735, 9.89, 7.095) end
If you can find out what's wrong, please do tell. I will appreciate your help!
This line doesn't make much sense
local cheese = script.Parent:WaitForChild(script.Parent.Parent.Cheese)
I'm not sure where cheese is located, but I think you're trying to do this
local cheese = script.Parent.Parent:WaitForChild("Cheese")