How do I make this spin?

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!
    I want to make this spin.
  2. What is the issue? Include screenshots / videos if possible!
    How to spin - YouTube

It won’t spin. I tried changing its cframe, orientation, and the “fromEulerAngleXYZ” thing using tweenservice but it doesnt work, cframe.new or cframe.fromeuleranglexyz doesnt make it spin or move at all, orientation makes it move but only like vertically and horizontally. I want it to spin like a tornado? Also I’m pretty new so Im not very good at scripting
3. What solutions have you tried so far? Did you look for solutions on the Developer Hub?
I tried searching dev hub and youtube but the solutions don’t work.

I tried doing this

local Mgoal = {}
Mgoal.Size = MainTornado.Size + Vector3.new(0,0,0)
Mgoal.Orientation = MainTornado.Orientation + Vector3.new(0,0,0)
Mgoal.CFrame = MainTornado.CFrame*CFrame.fromEulerAngelsXYZ(0,0,0)
local Minfo = TweenInfo.new(0.5)
local Mtween = TweenService:Create(MainTornado,Minfo,Mgoal)
Mtween:Play()

1 Like

u put zero on CFrame try CFrame.fromEulerAngelsXYZ(0,math.rad(3600),0)

i tried this it still doesn’t move

you need to use a loop (character limit)

1 Like

nvm I used CFrame.Angles it spins now.

put code in a code block like this:

local Mgoal = {}
Mgoal.Size = MainTornado.Size + Vector3.new(0,0,0)
Mgoal.Orientation = MainTornado.Orientation + Vector3.new(0,0,0)
Mgoal.CFrame = MainTornado.CFrame*CFrame.fromEulerAngelsXYZ(0,0,0)
local Minfo = TweenInfo.new(0.5)
local Mtween = TweenService:Create(MainTornado,Minfo,Mgoal)
Mtween:Play()

to do so click the </> button and paste code in there

image

also this should fix:

local Mgoal = {
	Size =  MainTornado.Size + Vector3.new(0,0,0),
	Orientation = MainTornado.Orientation + Vector3.new(0,0,0),
	CFrame = MainTornado.CFrame*CFrame.fromEulerAngelsXYZ(10,0,0)
}


local Minfo = TweenInfo.new(0.5)
local Mtween = TweenService:Create(MainTornado,Minfo,Mgoal)
Mtween:Play()

I tried this and it didn’t work. I used CFrame.Angles instead of fromeuleranglesxyz and it worked.
Idk why fromeulerangles dont work but thanks anyway