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

Intro GUI not working help??

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?

3 answers

local gui = game.StarterGui.IntroGui
local button = game.StarterGui.Button --Change this to your button
button.MouseButton1Down:connect(function()
	gui.destroy()
end

1 comment

0

This didnt work.

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.

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