How would I fix this sales script?

You can write your topic however you want, but you need to answer these questions:

  1. What do you want to achieve? Keep it simple and clear!
    An FE script and a script that works.

  2. What is the issue? Include screenshots / videos if possible!
    When I type wait it classes it as an error.
    https://prnt.sc/pw3t47

  3. What solutions have you tried so far? Did you look for solutions on the Developer Hub?
    I looked for solutions I couldn’t find any.

I am using this for a pop up when you sell so when you sell it pops up +1 or anything.

1 Like

You didn’t close both sets of parentheses on line 2.

3 Likes

you need to close the brackets on line 2

1 Like

As highlighted in the code editor, your script has a typo.

You wrote:

wait(1)
script.Parent:tweenPosition(UDim2.new(script.Parent.Position.X,0, -.1, 0)
wait(.1)
[...]

You should have written:

wait(1)
script.Parent:tweenPosition(UDim2.new(script.Parent.Position.X,0, -.1, 0))
wait(.1)
[...]

This is because Roblox expects brackets that are opened, to be closed.


Try hovering over the red line, it’ll give you more details about the error in question.

3 Likes

Hey thanks for helping me fix this problem :slight_smile:

2 Likes

just a heads up, rotation is not on 1 axis, so you would have to use 3 axis(x,y,z) that would be a problem if you dont fix it now

1 Like

Thank you so much for helping.

2 Likes