spinning wheel roblox code example
Example: 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)