So, i've created a pipe wheel, and when the player presses "E" then it rotates but now, it just spins somewhere instantly, not smoothly. Here's the code:
local prox = script.Parent.wheel.Union.ProximityPrompt
prox.Triggered:Connect(function()
for i = 1, 100, 1 do
script.Parent.wheel.Union.CFrame = script.Parent.wheel.Union.CFrame * CFrame.fromEulerAnglesXYZ(0.5,0,0) * CFrame.new(0, 0, 0)
end
end)

1 comment
Maybe try an animation for the wheel if that's possible