of     1   

SweetAsCreampie
#228362298Sunday, December 03, 2017 3:43 AM GMT

How do i find the player gui 24/7 in scripts? Im trying to make a tool create a GUI on activation. I have no idea how to make a GUI spawn to the player that activated the tool :(
Denny9876
#228363564Sunday, December 03, 2017 4:19 AM GMT

In the tool, insert a script and put this : script.Parent.Activated:Connect(function()--Fired when player clicks while equipped script.Parent.LocalScript.Disabled = false--Enables localscript for gui enable end) Then in the tool, insert a localscript and put this : game.Players.LocalPlayer.PlayerGui.PUTNAMEHERE.Enabled = true--Enables gui When the player clicks, it enables the localscript which makes the gui show up.
hollowlucas
#228363596Sunday, December 03, 2017 4:21 AM GMT

Denny! I got 100 robux xDDDD :D Friend me plz denny! <3
Denny9876
#228363707Sunday, December 03, 2017 4:25 AM GMT

Congrats!
SweetAsCreampie
#228380862Sunday, December 03, 2017 3:16 PM GMT

i cant use that. I need it to select the User's GUI without having to specify his/her name
Denny9876
#228382649Sunday, December 03, 2017 3:57 PM GMT

I'm a little confused on what you mean by "without having to specify his/her name". Isn't localplayer kinda like that? I also re-made the script so you only need 1 localscript for it. Just put this in the tool : script.Parent.Activated:Connect(function() game.Players.LocalPlayer.PlayerGui.GUINAMEHERE.Enabled = not game.Players.LocalPlayer.PlayerGui.GUINAMEHERE.Enabled end) This script toggles the GUI by click to the player with the equipped tool.
SweetAsCreampie
#228424521Monday, December 04, 2017 1:16 PM GMT

I got everything working, bud. Im just waiting for my robux to start spawning in. I cant do custom animations without robux :(

    of     1