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
You cannot use "game.StarterGui."