I want to make an object rotate around a fixed point for an effect under the player without actually rotating the point so other objects around it can have different rotation speeds, How would i do that?
You could use basic trigonometry to orbit an object around a certain position, a basic example of this is:
--// Define Properties
local Part = workspace.Part
local Origin = Part.Position
local Offset = 5
--// Loops
for i = 1,360,1 do
local Angle = math.rad(i)
local X = Origin.X + Offset * math.cos(Angle)
local Y = Origin.Y + Offset * math.sin(Angle)
Part.Position = Vector3.new(X,Y,Origin.Z)
task.wait()
end
1 Like