Hi, issue is that the anim is not freezing after .7 seconds. Does anyone know why? The printing works, it just doesn’t freeze the anim which is strange. This script is a server script in serverscriptservice. The issue is only for the ‘out’ argument, in works fine.
local replicatedstorage = game:GetService("ReplicatedStorage")
replicatedstorage.handler.OnServerEvent:Connect(function(player: Player, info: any)
if replicatedstorage.handler["v"].Value == "noobie" then
local animator = player.Character.Humanoid:FindFirstChild("Animator")
local anim_phone_out
local anim_phone_in
local s, e = pcall(function()
anim_phone_out = animator:LoadAnimation(script.outanim)
anim_phone_in = animator:LoadAnimation(script.inanim)
end)
if s then
if info[1] == "out" then
anim_phone_in:Stop()
anim_phone_out:Play()
task.wait(.7)
anim_phone_out:AdjustSpeed(0)
warn("played out")
elseif info[1] == "in" then
anim_phone_out:Stop()
anim_phone_in:Play()
warn("played in")
end
end
end
end)