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

How to make a start GUI not show when a player resets? (UNANSWERED)

Asked by
Vid_eo 126
9 years ago

I'm finished with my start GUI, except there's one problem : It shows whenever a player dies. Here's my script so far (I probably will need to insert a new script for that :c)

--Script by club101coolguy

local Player = game.Players.LocalPlayer
Box = script.Parent.Parent.Frame
Play = script.Parent.Parent.Play
gui = script.Parent.Parent
Text = script.Parent.Parent.TextLabel
local Sound = Instance.new("Sound", gui)
Sound.SoundId = "http://www.roblox.com/asset/?id=221235033"
Sound.Pitch = 1
Sound.Volume = 0.7

--Variables and Variable Properties

Sound:Play()

function MouseEnterPlayButton()
    Play.FontSize = "Size48"
end

function MouseLeftPlayButton()
    Play.FontSize = "Size36"
end
Play.MouseEnter:connect(MouseEnterPlayButton)
Play.MouseLeave:connect(MouseLeftPlayButton)

--Makes chat Play Button bigger when a mouse hovers.

function PlayGame()
    Box:Destroy()
    Play:Destroy()
    Sound:Stop()
    Text:Destroy()
end

Play.MouseButton1Down:connect(PlayGame)
--When a Player clicks on Play, Music stops and GUIs dissapear.


0
I do not think this is possible due to the fact that it StarterGui's are ALWAYS in the players inventory, you might beable to make a script, though probably not yogipanda123 120 — 9y

1 answer

Log in to vote
0
Answered by 9 years ago

Try adding in a timer so when the player dies it goes away for a certain time However to make sure it stays away put a really large number everytime the player dies the number resets such if they die when its at 24678, then it will reset to its original number 32000

0
And I even made them get destroyed :/ Vid_eo 126 — 9y
Ad

Answer this question