-
What do you want to achieve?
Have a model rotate around a part/location -
What is the issue?
The model is moved to a location nowhere near where it is intended to go -
What solutions have you tried so far?
I’ve only seen code for a single part, not models, and there is only a few questions related to rotating around a point also.
This is the code i’m using below, there is no error in the output and I believe the issue only occurs in the while true do loop.
local pos = script.Parent.bruh.Position
local Point = CFrame.new(pos) -- The point the object will rotate around
local Offset = CFrame.new(0,0,2500) -- the offset of the part (distance from it)
local Object = script.Parent.Station
while true do
for i = 1,360 do
Object:MoveTo(Vector3.new(Point * CFrame.Angles(0,math.rad(i),0) * Offset))
wait()
end
end