i've tried to make a part spin using this (in a localscript):
local spin = script.Parent
local rotationSpeed = 20
game:GetService("RunService").RenderStepped:Connect(function(deltaTime)
spin.CFrame = spin.CFrame * CFrame.Angles(0, rotationSpeed * deltaTime, 0)
end)
however it doesn't seem to work, please help
i've looked up this piece of script online