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

How do I get a talking screen you died when you die?

Asked by 6 years ago
Edited 6 years ago

Hi, I'm creating a game and I do not remember the functions for this, could someone humble help me? I am grateful

Link game : https://www.roblox.com/games/1504622981/Up-Power-Coming-Soon

1 answer

Log in to vote
0
Answered by 6 years ago
-- Use this in a local script under StarterCharacter

Character = script.Parent
Character.Humanoid.Died:connect(function()

local YouDiedMusic = Instance.new("Sound",Character)
YouDiedMusic.SoundId = "rbxassetid://142288053" -- change it to what you like
YouDiedMusic.Volume=10
YouDiedMusic:Play()

end)

Nice game you have there :)

Ad

Answer this question