This is the script:
local gui = script.Parent.Parent.night_GUI:Clone() function click() gui.Parent = game.Players.LocalPlayer.PlayerGui wait(1) script.Disabled = true wait(60) script.Disabled = false end script.Parent.ClickDetector.MouseClick:connect(onClick)
I've went through and checked it, but still same Console Error: ClickDetector is not a valid member of ClickDetector Remember, this is not a LocalScript. any help please? Thanks!
Simple spelling Error.
script.Parent.ClickDetector.MouseClick:connect(click)
Make it a local script. LocalPlayer doesn't run in a normal script. Also:
script.Parent.ClickDetector.MouseClick:connect(click)
OnClick isn't the name of the function. It's click.