I am making a game similar to Darkness, but only WAY different. I'm using GUIs for my main start screen, but when I put the script o that when the player clicks it, the script doesent work. The gui just stays. Im not an expert scripter, so this is probably wrong.
gui = game.StarterGui.IntroGui function OnClicked() wait(3) gui.destroy()
Probably wrong, someone fix my errors please?
local gui = game.StarterGui.IntroGui local button = game.StarterGui.Button --Change this to your button button.MouseButton1Down:connect(function() gui.destroy() end
You didn't define what OnClicked was
For the answer above me, what type of script did you put it in? LocalScript or Script? Try both.