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

How do I make a GUI activate after a sound gets triggered ?

I tried a script to make a gui appears after it commits die, but it didn't work. So i need to know how can i make a gui appear after a sound plays when it's parent gets deleted.

1 answer

You didn't give me enough info so i'll just use place holders. The Answer is quite simple first get the route to the sound (Example : local sound = script.Parent.Parent.Sound)

local sound = script.Parent.Parent.Sound

Next is the GUI part

if sound.Playing == true then
	script.Parent.GUI NAME HERE. Enabled = true
end

And this is the full script

---------VARIABLES---------
local sound = script.Parent.Parent.Sound

---------MAIN---------

if sound.Playing == true then
	script.Parent.GUI NAME HERE. Enabled = true
end

If you provide me with the information I need I can help you further. If you understand this script you're welcome.

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