So i got this script here

game.Players.LocalPlayer.Character:WaitForChild("Humanoid").Died:connect(function()
	toggle.Visible = true
end)

This makes the toggle button visible. After the round the toggle button will get invisible again but if i die a second time it wont get visible again. Any Solution?

3 comments

0

It's because the Character Rig is recycled during respawn. The previous Humanoid Instance is no longer valid, and all relative RBXScriptConnections are disconnected.

0

Look into 'CharacterAdded'.

0

So i just activated ResetOnSpawn and now it works!