Heres my code, i get an error of "scale cannot be assigned to"
while true do
for x = 0, (math.pi/3), 0.1 do
script.Parent.Position.Y.Scale = -0.5 * math.sin(3 * x)
wait(0.1)
end
end
Heres my code, i get an error of "scale cannot be assigned to"
while true do
for x = 0, (math.pi/3), 0.1 do
script.Parent.Position.Y.Scale = -0.5 * math.sin(3 * x)
wait(0.1)
end
end
while true do
for x = 0, (math.pi/3), 0.1 do
script.Parent.Position -= vector3.new(0,-0.5 * math.sin(3 * x),0)
wait(0.1)
end
end
try this
This discussion is preserved as it was. New answers, comments, and votes are closed.
1 comment
Yeah, but that would influence the x and z, i have another script which acts upon those. This script would constantly reset the x and z to (0, 0)