Tweening and clickDetector Scripting Help [Syntax Error]

I am scripting this part to transform this part to the position (-101.2, 12.85, -28.699) when clicked, using a TweenService and a clickDetector. But, I have come across issues. The Output window shows that there is a syntax error on line 7 near the β€œ=” symbol. Help is appreciated

Regards,

Here is a screenshot of the explorer menu:

EndBehavior needs to be a table

local EndBehavior = {Position = Vector3.new(-101.2, 12.85, -28.699)};

2 Likes

To extend on this, you’re using ( ) instead of { } to try to create a table. Tables use { and }. Replacing parenthesis with curly braces should fix it.

1 Like