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.
COMMUNITY QUESTION
I need help with showing GUIS even if I dont die?
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.

2 comments
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
Add "script.Parent:Destroy()" That should stop the script from showing after it is once shown. Dont add any commas ;)