Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

Humanoid.Died doesnt work any way that i try to use it?

How could i use the humanoid.died function properly, because currently it doesnt work at all, and before it used to work on the second time i reset my character.

This is the code right now:

game.Players.PlayerAdded:Connect(function(Player)
	workspace[Player.Name].Humanoid.Died:Connect(function()
		camera:MoveTo(game.Workspace.EndPart.CFrame)
		camera:PointTo(game.Workspace.FocusPart.CFrame)
		camera:SetFOV(70)
	end)
end)

i want it to basically just run this line

		camera:MoveTo(game.Workspace.EndPart.CFrame)
		camera:PointTo(game.Workspace.FocusPart.CFrame)
		camera:SetFOV(70)

every time the player dies

1 comment

0

is there an error somewhere?

1 answer

This discussion is preserved as it was. New answers, comments, and votes are closed.