Tornado not moving

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!
    A tornado that moves between random nodes

  2. What is the issue? Include screenshots / videos if possible!
    The tornado doesn’t move.

  3. What solutions have you tried so far? Did you look for solutions on the Developer Hub?

After that, you should include more details if you have any. Try to make your topic as descriptive as possible, so that it’s easier for people to help you!

This script is parented to the tornado.

local ts = game:GetService("TweenService")
local nodeNumber = math.random(1, 3)
local ti = TweenInfo.new(5, Enum.EasingStyle.Linear, Enum.EasingDirection.In, 0, false, 0)

local goal = {['Position'] = game.Workspace["TornadoNode"..tostring(nodeNumber)].Position}


while true do
	ts:Create(script.Parent, ti, goal):Play()
	wait(5)
	nodeNumber = math.random(1, 3)
	wait(1)
end

Please do not ask people to write entire scripts or design entire systems for you. If you can’t answer the three questions above, you should probably pick a different category.

You also need to update the property table directly.

Ex. a=5, A={a} a=11

Will still have A containing only 5 and not 11.

idk how to do that

30CHARBYPASS

local ts = game:GetService(“TweenService”)

local ti = TweenInfo.new(5, Enum.EasingStyle.Linear, Enum.EasingDirection.In, 0, false, 0)

local goal = function()
local nodeNumber = math.random(1, 3)
return {[‘Position’] = game.Workspace[“TornadoNode”…tostring(nodeNumber)].Position}
End

while true do
ts:Create(script.Parent, ti, goal()):Play()
wait(6)
end

Just make goal into a function.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.