#💬 mr.brrlʹs Feedback

1 messages · Page 1 of 1 (latest)

jovial torrentBOT
woven trail
#

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)

knotty warren
#

explain what this does cause it is not easily read for me

woven trail
knotty warren
#

thats true

woven trail
#

its just that, else its good

knotty warren
#

im just doing this for a small event in a community im in

knotty warren
#

so its not that important