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

I see that everything is okay so why is this function error happening?

I'm making a function and for some reason it's bringing up an error. '18:47:54.001 - Workspace.Script:3: ')' expected near '.''

I don't see anything wrong with this.

function count(
	game.StarterGui.CountdownGUI.ImageLabel.Visible = true
	wait(1)
	game.StarterGui.CountdownGUI.ImageLabel.Image = 'https://www.roblox.com/library/2914200724/2'
	wait(1)
	game.StarterGui.CountdownGUI.ImageLabel.Image = 'https://www.roblox.com/library/2914200067/1'
	wait(1)
	game.StarterGui.CountdownGUI.ImageLabel.Visible = false
	game.StarterGui.CountdownGUI.ImageLabel.Image = 'https://www.roblox.com/library/2914201367/3'
)end

3 comments

0

THE ) IS BEFORE THE END XD

0

look closely, error is bla bla bla error expected ) at end, listen to the ), look for the ), thats what i did and it was in wrong place

0

Wrong line @CommanderCaubunsia. Look at his error.

1 answer

easy, you made a tiny mistake, dont worry, it happens, chnage script from this:

function count(
    game.StarterGui.CountdownGUI.ImageLabel.Visible = true
    wait(1)
    game.StarterGui.CountdownGUI.ImageLabel.Image = 'https://www.roblox.com/library/2914200724/2'
    wait(1)
    game.StarterGui.CountdownGUI.ImageLabel.Image = 'https://www.roblox.com/library/2914200067/1'
    wait(1)
    game.StarterGui.CountdownGUI.ImageLabel.Visible = false
    game.StarterGui.CountdownGUI.ImageLabel.Image = 'https://www.roblox.com/library/2914201367/3'
)end

to this

function count(
    game.StarterGui.CountdownGUI.ImageLabel.Visible = true
    wait(1)
    game.StarterGui.CountdownGUI.ImageLabel.Image = 'https://www.roblox.com/library/2914200724/2'
    wait(1)
    game.StarterGui.CountdownGUI.ImageLabel.Image = 'https://www.roblox.com/library/2914200067/1'
    wait(1)
    game.StarterGui.CountdownGUI.ImageLabel.Visible = false
    game.StarterGui.CountdownGUI.ImageLabel.Image = 'https://www.roblox.com/library/2914201367/3'
end)

4 comments

0

You didn't pay any attention at all to his error. His error was on line 3, not line 10.

0

Fixed it, but now it says 'Workspace.Script:2: ')' expected near '.'' There's a red line under the dot in game.StarterGui.

0

also, you are using startergui instead of the playergui

0

i know i'm making it appear for everyone.

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