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

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

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.


1 comment

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

1 answer

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

1 comment

0

And I even made them get destroyed :/

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