Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How do i change how the GUIs appear after a player died?

Asked by
oSyM8V3N 429 Moderation Voter
7 years ago

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,

2
LocalScript and the Died event Azarth 3141 — 7y

1 answer

Log in to vote
1
Answered by
Ziruken 139
7 years ago

You can use the following function:

local humanoid = player.Character:WaitForChild('Humanoid') -- Locates the humanoid

humanoid.Died:Connect(function()
    -- stuff here
end)
1
Thanks :) oSyM8V3N 429 — 7y
0
It's ok Ziruken 139 — 7y
Ad

Answer this question