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

why doesnt my local script doesnt work in the game?? (open/close gui)

Asked by 7 years ago

The question says it all, I created a successful script thanks to a few people who helped me previously, and they work in test mode. But not in the actual game


local Text = game.Players.LocalPlayer.PlayerGui.ScreenGui.TextLabel script.Parent.MouseButton1Click:connect (function() if Text.Visible == false then Text.Visible = true else Text.Visible = false end end)
0
Consider changing line 1. use startergui instead. don't use playergui. That worked for me Mohawkid14 28 — 7y
0
startergui is not a child of a player Benjamin_pro1000 3 — 7y

1 answer

Log in to vote
0
Answered by 7 years ago

Bump!

Ad

Answer this question