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

Why am i getting a parsing expression error here? (UDim2)

intro.Buttons.With.MouseButton1Down:Connect(function()
	intro.Buttons.With.Text = "Launching.."
	wait(2)
	intro.Buttons.With.Text = "Finished!"
	wait(1)
	open.Visible = true
	intro:Destroy()
	open:TweenPosition(
	UDim2(0.008, 0, 0.881, 0)
	"Out",
	"Quad",
	1,
	false,
	)
end)

Can't think of why this is giving me an error and its making me go insane, any help would be appreciated.

1 answer

Oof look like you are missing an , at line 9

intro.Buttons.With.MouseButton1Down:Connect(function()
    intro.Buttons.With.Text = "Launching.."
    wait(2)
    intro.Buttons.With.Text = "Finished!"
    wait(1)
    open.Visible = true
    intro:Destroy()
    open:TweenPosition(
    UDim2(0.008, 0, 0.881, 0), -- HeRe
    "Out",
    "Quad",
    1,
    false -- NO need ,
    )
end)

Or you could try is layout:

intro.Buttons.With.MouseButton1Down:Connect(function()
    intro.Buttons.With.Text = "Launching.."
    wait(2)
    intro.Buttons.With.Text = "Finished!"
    wait(1)
    open.Visible = true
    intro:Destroy()
    open:TweenPosition(UDim2(0.008, 0, 0.881, 0), "Out","Quad",1,false -- NO need ,)
end)

6 comments

0

Fixed both of those errors and now im getting a statement spans multiple lines error?

0

YOu could try my 2nd layout :p

0

Now im getting "Expected ')' (to close '(' at line 30), got 'end'"

0

:V The script you given to me is only 9 line long (Add a ) at the end)

0

alright sorry for bothering again but now im getting this error "attempt to call a table value"

0

Yea i can''t fix that since you didn't show the script but here is a tutorial how to fix error https://www.youtube.com/watch?v=PD-xwfhnxKs&t=86s

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