I don’t know why character Don’t Hands Up
robloxapp-20250313-2015061.wmv (1.4 MB)
I dont know What should i do
local Handing
local plrs = game:GetService("Players")
local reps = game:GetService("ReplicatedStorage")
local function cor(f) -- doing simmilar coroutine.warp(func)()
local b = coroutine.create(f)
coroutine.resume(b)
return b
end
local function hands_up(plr,t) -- t dont use on this script now
local chr = plr.Character
local Hands_Up_Animation = script.Hands_Up --(: Animation)
Hands_Up_Animation.AnimationId = "rbxassetid://87097602033793" -- Hands Up Animation Doing 1 second
Handing = true
local Humanoid = chr:FindFirstChild("Humanoid")
local Animator:Animator = Humanoid:WaitForChild("Animator")
local anim = Animator:LoadAnimation(Hands_Up_Animation)
cor(function()
repeat
print("work")
anim:Stop()
anim:Play()
task.wait(0.6)
until Handing == false
end)
repeat
task.wait()
until Handing == false
end
plrs.PlayerAdded:Connect(function(plr)
plr.CharacterAdded:Connect(function(chr)
hands_up(plr,"asfd")
end)
end)
Animation Working But Not Working Properly