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

Part with clickdetector and script won't work?

Hi i made a script i have a part with a clickdetector and a script and if i click the part the things i coded in the script won't work and output doesn't say anything why? Btw the script is a normal script and i have FilteringEnabled OFF.

function onClicked()
wait(1)
game.StarterGui.Keys.Key1.Visible = true
end
script.Parent.ClickDetector.MouseClick:connect(onClicked)

1 comment

0

You cannot use "game.StarterGui."

1 answer

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