what's wrong with my script??

function Died()
local tag = script.Parent.Human:FindFirstChild("creator") 
	if tag ~= nil then 
		if tag.Value ~= nil then
			local p = game.Players:GetPlayerFromCharacter(tag.Value)
			if p~= nil then
			p.Character.Humanoid.Torso.CFrame = script.Parent.Parent.Stages.stage1.CFrame
end
end
end
end
script.Parent.Human.Died:Connect(Died)

2 comments

0

The problem is is that your not indenting correctly.

0

"if tag ~= nil then if tag.Value ~= nil then" yay redundant code