#💬 mr.brrlʹs Feedback
1 messages · Page 1 of 1 (latest)
I think it can be Better :
local trigger = script.Parent
local spinner = script.Parent.Parent.Motor.HingeConstraint
trigger.ProximityPrompt.Triggered:Connect(function()
print("started")
spinner.AngularVelocity = Vector3.new(0, 0, -1) -- Starts spinning
local originalAngularVelocity = spinner.AngularVelocity
local targetAngularVelocity = Vector3.new(0, 0, 0)
local duration = 3 -- Adjust this value for the desired duration of slowing down
local startTime = tick()
while tick() - startTime < duration do
local elapsedTime = tick() - startTime
local t = elapsedTime / duration
spinner.AngularVelocity = originalAngularVelocity:Lerp(targetAngularVelocity, t)
wait(0.1) -- Adjust the interval for smoother slowing down
end
spinner.AngularVelocity = targetAngularVelocity -- Stops spinning
print("stopped")
end)
explain what this does cause it is not easily read for me
The wheel turns but stops too sharp
its just that, else its good
im just doing this for a small event in a community im in
oh cool
so its not that important