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

I need help with showing GUIS even if I dont die?

I am struggling with using GUI's in my game. I made it so that when R is clicked a GUI would show but there is only one slight issue. That issue is that I have to die for the GUI to show. Is there a way to make it so that this does not happen.

2 comments

0

That's not normal, but I think your issue might be changing things in startergui, as opposed to PlayerGui http://wiki.roblox.com/index.php?title=Player_vs._Starter_GUIs

0

Add "script.Parent:Destroy()" That should stop the script from showing after it is once shown. Dont add any commas ;)

1 answer

I think what is happening is that you are changing StarterGui and not PlayerGui Example code: (This assumes you are using a localscript, and also assumes that you are trying to make a screengui show)

game.Players.LocalPlayer.PlayerGui.Gui.Enabled = true

You'll have to make the R key press part yourself

1 comment

0

Thanks a lot guys it really helped :D

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