I’m trying to make it so this Q2B actually has a motor inside of it, but at a certain volume, it freezes.
It was a modified script so just to let you know, the script isn’t mine. (Idk if I should say who made it or not)
Here is the video of it freezing (sorry for the bad quality )
Q2BGlitch.wmv (1.4 MB)
and here is the script controlling it! (Again, these scripts are NOT mine)
sound = script.Parent.Parent
local Motor4 = {}
--------------------------------------------------------------------------------
for _,i in pairs(script.Parent.Parent.Parent.Parent.Lightbar.RotLights:GetChildren()) do
if i.Name == "Motor4" then
table.insert(Motor4,i.Motor)
end
end
while true do
wait()
if sound.Pitch > 0.0001 then
sound.Volume = 0.0001 + sound.Pitch/0.6
for _,i in pairs(Motor4)do
i.MaxVelocity = 0.0001 + i.MaxVelocity/0.6
i.DesiredAngle = -99999999999999999999999999999999999
end
else
sound.Volume = 0
for _,i in pairs(Motor4)do
i.MaxVelocity = 5555555555555555555555
i.DesiredAngle = 0
end
end
wait()
end