Why is my /e animations script not working anymore?

So out of no where, my /e animations script stopped working. So when players do /e and type the animation name in to do it, it no longer works.

This is my script: prefix = "/e "
game.Players.PlayerAdded:connect(function(p)
p.Chatted:connect(function(m)
m = m:lower()
if m == prefix..“lowend4” then
local a = Instance.new(“Animation”,p.Character)
a.AnimationId = “rbxassetid://12795008138”
local h = p.Character:FindFirstChild’Humanoid’
local t = h:LoadAnimation(a)
t:Play()
p.Chatted:connect(function(m)
m = m:lower()
if m == prefix..“stop” then
t:Stop()
end
end)
end
end)
end)

Can anyone help me fix this?

2 Likes

I don’t see animations id to loadanimation

it’s single one animation

change prefix ?

1 Like

p.Chatted is deprecated. You should use TextChatService.MessageReceived.

1 Like