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)
Check it at http://wiki.roblox.com/index.php?title=API:Class/ClickDetector/MouseClick
Your code should be
script.Parent.ClickDetector.MouseClick:connect(function(playerWhoClicked) playerWhoClicked.PlayerGui.Keys.Key1.Visible = true end)
Put it in script in part.