Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
1

A spinning part speed?

Asked by
FiredDusk 1466 Moderation Voter
8 years ago

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
0
Use math.rad() to keep it at a controlled pace. dyler3 1510 — 8y

2 answers

Log in to vote
1
Answered by 8 years ago

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.

Ad
Log in to vote
1
Answered by 8 years ago
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!

0
These 2 examples Work! TayLife12 69 — 8y

Answer this question