Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

A spinning part speed?

I want the part to rotate slower.

local part = Instance.new("Part",workspace)
local d = Instance.new("Decal",part)

part.TopSurface="Smooth"
part.BottomSurface="Smooth"
part.Anchored=true
part.Size=Vector3.new(1,1,1)
part.CFrame=CFrame.new(0,50,0)
part.Position=Vector3.new(0,0,0)

while wait(.1) do
    part.CFrame = part.CFrame * CFrame.Angles(0,1,1/100)--part.CFrame = part.CFrame * CFrame.Angles(0,0,1/10)
end

1 comment

0

Use math.rad() to keep it at a controlled pace.

2 answers

✓ Accepted answer

Divide both angles by 100 and keep the wait argument in the loop blank so it runs smoother.

local part = Instance.new("Part",workspace)
local d = Instance.new("Decal",part)

part.TopSurface="Smooth"
part.BottomSurface="Smooth"
part.Anchored=true
part.Size=Vector3.new(1,1,1)
part.CFrame=CFrame.new(0,50,0)
part.Position=Vector3.new(0,0,0)

while wait() do
    part.CFrame = part.CFrame * CFrame.Angles(0,1/100,1/100) -- or you could put 0.01
end

If you want help on CFrames, you can message me on ROBLOX. I see you're using my example from my previous explanation, so I can help you privately if you wan't.

local part = Instance.new("Part",workspace)
local d = Instance.new("Decal",part)
part.TopSurface="Smooth"
part.BottomSurface="Smooth"
part.Anchored=true
part.Size=Vector3.new(1,1,1)
part.CFrame=CFrame.new(0,40,0)
part.Position=Vector3.new(0,0,0)

 while wait(.1) do
    part.CFrame = part.CFrame * CFrame.Angles(0,0.3,1/100)--part.CFrame = part.CFrame * CFrame.Angles(0,0,1/10)

end

In Line 12 at CFrame * CFrame.Angles(0,0.3,1/100)

The 0.3 Slows It Down, You can set this number to whatever you want!

1 comment

0

These 2 examples Work!

This discussion is preserved as it was. New answers, comments, and votes are closed.