Animation does not seem to be working

Hiya.

So, here’s a simple animation for a rowboat rocking back and fourth, problem is, it doesn’t register some math.

pos = script.Parent.Position pos = Vector3.new(pos.x, pos.y-0.2, pos.z)
x = 0
z = 0
T = -99999
tall = script.Parent.Size.Y / 2 math.randomseed(tick())
rand = (math.random(0,20))/10 while true do
x = pos.x + (math.sin(T + (pos.x/5)) * math.sin(T/30))/30
z = pos.z + (math.sin(T + (pos.z/6)) * math.sin(T/30))/30
script.Parent.CFrame=a
CFrame.new(x, pos.y, z)*CFrame.Angles((z-pos.z)/tall, -1.2,(x-pos.x)/-tall)
wait()
T = T + 0.04
end

the error is on line 10. the message i get when trying to run it is "(boat)10: Expected identifier when parsing expression, got ‘*’
the only thing that is underlined red is the asterisk symbol.
What am i doing wrong?

You aren’t setting any equal signs, and a is not a variable, try this.

pos = script.Parent.Position pos = Vector3.new(pos.x, pos.y-0.2, pos.z)
x = 0
z = 0
T = -99999
tall = script.Parent.Size.Y / 2 math.randomseed(tick())
rand = (math.random(0,20))/10 while true do
x = pos.x + (math.sin(T + (pos.x/5)) * math.sin(T/30))/30
z = pos.z + (math.sin(T + (pos.z/6)) * math.sin(T/30))/30
local a = CFrame.new(x, pos.y, z)*CFrame.Angles((z-pos.z)/tall, -1.2,(x-pos.x)/-tall)
script.Parent.CFrame=a
wait()
T = T + 0.04
end

Edit: Now realizing you didn’t share the full code, but anyways, the error is you’re not putting an equal sign when identifying the new CFrame