I have a block that has a fire animation, I want the block to move so that the fire moves with it. I want it to move from -81.5, 39551.812, 113 to 174.3, 39551.812, 113, then moves back to -81.5, 39551.812, 113 and so on repeat.
Here is my script so far:
local pos = script.Parent.Position
local fireblock = script.Parent
if pos < Vector3(174.3, 39551.812, 113) then
fireblock.Position = pos + Vector3.new(1,0,0)
end elseif pos > (174.3, 39551.812, 113) and pos > (-81.5, 39551.812, 113) then
fireblock.Position = pos - Vector3.new(1,0,0)
end)
It doesnt make sense but I think its fine except I have to change somethings. o what I am asking for is if anyone can see what I did wrong in the script?
Any help would be appreciated!
