i would really like to know how i can make a GUI pop up for example if you have an obby with 30 stages and the player is at stage 25 then i would like to know how i can make a GUI pop up saying Final five this is the answer i got from the last question i asked
1 | function onTouch(hit) |
2 | local character = hit.Parent |
3 | local Player = game.Players:GetPlayerFromCharacter(character) |
4 | local sound = Instance.new( "Sound" ) |
5 | sound.SoundId = "-- replace this with a sound ID (keep the Quotes)" |
6 | sound.Parent = Player.PlayerGui |
7 | sound:Play() |
8 | end |
9 | script.Parent.Touched:connect(onTouch) |
you can use this yourself to make music in diffrent areas i would just really like to know how
01 | local Part = script.Parent |
02 |
03 | Part.Touched:connect( function () -- Different type of function |
04 | local Plr = game.Players.LocalPlayer |
05 | local Gui = game.ServerStorage.ScreenGui |
06 | local Sound = Instance.new( "Sound" , Gui) |
07 | Sound.SoundId = "" --Put ID here |
08 | local GuiClone = Gui:Clone() |
09 | GuiClone.Parent = Plr.PlayerGui |
10 | Sound:Play() |
11 | wait( 4 ) |
12 | Gui:remove() |
13 |
14 | end ) |
Their it is, if you want to change the name of the gui you will also need to change the name if the gui in the script and redirect it if you did not put it in the ServerStorage . and if you dont want the gui to remove over a certain time remove line where it has a wait and the remove and insert a close button. Hope this helped.