Hello, I am aboslutley horrible with animating things so I was hoping I could use TweenService instead, I’m trying to make a model ‘orbit’ my map using tweenservice.
Like this:
I know I can easily tween it across but Im hoping around is possible.
Oh you right,
I guess we should make it differently…
I guess you could try to create a small part combine the part that’s supposed to circulate with the small part, which should be in the middle of the map, in a model.
Change the model’s piviot and roate it so it will perfectly circulate.
I am not quite sure if this is the best solution tho…
Why code it at all, just attach it to the map with a Motor6D or a Hinge + long invisible part and set it in motion (motor mode on hinge, or just huge TargetAngle on Motor6D). You’d use a Motor6D for something that is not collidable, purely a graphics effect, or a hinge if it’s something that needs to collide with players or objects physically.
local object = script.Parent —— or workspace:WaitForChild(“blah blah blah”)
local function spinPart(part)
while task.wait() do
part.CFrame *= CFrame.fromEulerAnglesXYZ(0,math.rad(5), 0)
if part == nil then
break
end
end
end
spinPart(object)
You’re probably gonna have to mess around with the math.rad() (radians) number, and put it in the x, y or z area to see which area is used to spin the object.