Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

What's wrong with this line of code?

Asked by
yurhomi10 192
10 years ago

I get a red squiggly line under it saying, 'unexpected symbol near ')' '

        c.Position = UDim2.new((1 - c.X.Scale))/2, 0, (1 - c.Y.Scale)/2, 0)

1 answer

Log in to vote
1
Answered by
ultrabug 306 Moderation Voter
10 years ago
c.Position = UDim2.new((1 - c.X.Scale)/2, 0, (1 - c.Y.Scale)/2, 0)

You put an extra ) by:c.X.Scale) You had:c.X.Scale))

0
thanks bud, sometimes having too many brackets/parenthesis gets confusing to look at. yurhomi10 192 — 10y
0
I know, I hate having to use them at anytime. ultrabug 306 — 10y
Ad

Answer this question