this is it
wait(3)
print("Ok loaded")
local player = game.Players.LocalPlayer
game.Players.PlayerAdded:Connect(function(players)
player.Chat:Connect(function(msg)
if msg == "OOF" then
print("Said OOF")
end
wait(3)
local anim1 = Instance.new("Animation")
anim1.AnimationId = ("rbxassetid://3739993441")
local animtrack=player.Character.Humanoid:LoadAnimation(anim1)
animtrack:Play()
print("Ok")
end)
end)
I fixed it, keeping it here for future people. ANSWER V
wait()
print("Ok loaded")
local player = game.Players.LocalPlayer
player.Chatted:Connect(function(msg)
if msg == "OOF" then
print("Said OOF")
wait(3)
local anim1 = Instance.new("Animation")
anim1.AnimationId = ("rbxassetid://3739993441")
local animtrack = player.Character.Humanoid:LoadAnimation(anim1)
animtrack:Play()
print("Ok")
end
end)

1 comment
I ended up fixing it