local isSpinning = false
local isDoorAnimating = false
Prompt.start.Triggered:Connect(function()
kakashkispinbin:Stop()
kakashkispinbin:Play()
if not isSpinning then
isSpinning = true
task.spawn(function()
wait(infaspinbin.Time)
isSpinning = false
if not isDoorAnimating then
isDoorAnimating = true
kakashki:Play()
wait(infa.Time)
wait(5)
kakashkir:Play()
wait(infa.Time)
isDoorAnimating = false
end
end)
end
end) local isSpinning = false
local isDoorAnimating = false
Prompt.start.Triggered:Connect(function()
kakashkispinbin:Stop()
kakashkispinbin:Play()
if not isSpinning then
isSpinning = true
task.spawn(function()
wait(infaspinbin.Time)
isSpinning = false
if not isDoorAnimating then
isDoorAnimating = true
kakashki:Play()
wait(infa.Time)
wait(5)
kakashkir:Play()
wait(infa.Time)
isDoorAnimating = false
end
end)
end
end)
local tweenservice = game:GetService("TweenService")
local stiralka = workspace.WashingMachineProp.Door
local stiralkar = stiralka.HingePart
local Prompt = workspace.WashingMachineProp.PanelInterface.Knob
local stiralkarcframe = stiralkar.CFrame
local infa = TweenInfo.new(1, Enum.EasingStyle.Back)
local target = {CFrame = stiralkar.CFrame * CFrame.Angles(math.rad(-110), 0, 0)}
local targetr = {CFrame = stiralkar.CFrame + Vector3.new(math.abs(0), 0, 0)}
local spinbin = workspace.WashingMachineProp.SpinBin
local infaspinbin = TweenInfo.new(10, Enum.EasingStyle.Back)
local targetspinbin = {}
targetspinbin.Orientation = spinbin.Orientation + Vector3.new(1080, 0, 0)
local kakashkispinbin = tweenservice:Create(spinbin, infaspinbin, targetspinbin)
local kakashki = tweenservice:Create(stiralkar, infa, target)
local kakashkir = tweenservice:Create(stiralkar, infa, targetr)
Prompt.start.Triggered:Connect(function()
kakashkispinbin:Play()
wait(infaspinbin.Time)
wait(1)
kakashki:Play()
wait(infa.Time)
wait(5)
kakashkir:Play()
end)