#make a part rotate around the player
16 messages · Page 1 of 1 (latest)
yes actually
Pastebin.com is the number one paste tool since 2002. Pastebin is a website where you can store text online for a set period of time.
I completelye forgot what the values were for
but there you have it
play around with it
and let me know how it went ^^
Yes, here are two ways;
Using CFrames (.new() & .Angles)
and using math.sin and math.cos to move it around a circlular path
CFrame way tldr;
Part.CFrame = CFrame.new(OriginPosition) * CFrame.Angles( math.rad(ANGLE), 0 0) * CFrame.new(0, 0, OFFSET_DISTANCE)
( math.rad(ANGLE) may be in a different spot )
sin/cos way tldr;
local radius = 10
local x = radius * math.sin( tick() )
local z = radius * math.cos( tick() )
part.Position = OriginPosition + Vector3.new( x, 0, z )