For example in my game when you join it pops up some guis, but when a player dies, i want it to be something different so its not the same as when someone joins. Can someone give me an idea or a quick example on how to do it?
Thanks,
For example in my game when you join it pops up some guis, but when a player dies, i want it to be something different so its not the same as when someone joins. Can someone give me an idea or a quick example on how to do it?
Thanks,
You can use the following function:
local humanoid = player.Character:WaitForChild('Humanoid') -- Locates the humanoid
humanoid.Died:Connect(function()
-- stuff here
end)
Thanks :)
It's ok
This discussion is preserved as it was. New answers, comments, and votes are closed.
1 comment
LocalScript and the Died event