Answers for "roblox how to make a wheel spin"

0

roblox how to make a wheel spin

local r = 2
local v = math.random(20, 50)
local con

con = game:GetService("RunService").RenderStepped:Connect(function(dt)
    wheel:SetPrimaryPartCFrame(wheel:GetPrimaryPartCFrame() * CFrame.Angles(0, dt * v, 0)) -- if your wheel is a model
    v = math.max(v - (dt * r), 0)

    if v == 0 then
        con:Disconnect()
    end
end)
Posted by: Guest on February-07-2021

Code answers related to "roblox how to make a wheel spin"

Browse Popular Code Answers by Language