I created a model of an old IBM Magnetic Tape Unit, and I animated the spinning tape reels. Everything looks pretty good while testing in Run mode inside Studio. But when I try it out in Play Here and Play modes, the reels grind to a stop. Am i missing something with physics settings in-game vs test mode or anything?
local fileReel = drive:FindFirstChild(“FileReel”)
local fileSpin = fileReel:FindFirstChild(“AngularVelocity”, true)
local machineReel = drive:FindFirstChild(“MachineReel”)
local machineSpin = machineReel:FindFirstChild(“AngularVelocity”, true)
local startClicker = drive:FindFirstChild(“StartButton”, true):FindFirstChild(“ClickDetector”)
local rnd = Random.new()
function onStartDrive()
if not fileSpin.Enabled then
fileSpin.Enabled = true
machineSpin.Enabled = true
while true do
wait(rnd:NextNumber(0.4, 0.8))
fileSpin.AngularVelocity = Vector3.new(0, 0, 0)
wait(0.1)
machineSpin.AngularVelocity = Vector3.new(0, 0, 0)
wait(0.5)
fileSpin.AngularVelocity = Vector3.new(-400, 0, 0)
machineSpin.AngularVelocity = Vector3.new(-400, 0, 0)
end
end
– Comment out if you want the player to click the start button on the drive,
– located at the top of the unit, bottom row of buttons, second from left
onStartDrive()