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

why does a script to show a gui in game not work? What should I do? Nothing appears.

script not working: script.Parent.ClickDetector.MouseClick:Connect(function() game.Players.LocalPlayer.PlayerGui.ScreenGui.Frame.Visible = true end)

when i click a part it should appear but it does not. Any fixes?

1 comment

0

hmmmmmmm can u show me a screenshot of your gui setup/explorer?

2 answers

It is not a local script. Try this script. Also use a code block when typing your code.

script.Parent.ClickDetector.MouseClick:Connect(function(player) player.PlayerGui.ScreenGui.Frame.Visible = true
end)

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