I made a script so that when the player joins, if they type something they have an animation play on their character.
When I uploaded the animation MYSELF to Roblox under my name, the type of animation was Action. And no, this game is not in a group
Code:
prefix = "/e " -- Put any prefix here, with a space
game.Players.PlayerAdded:connect(function(p)
p.Chatted:connect(function(m)
m = m:lower()
if m == prefix.."hardlaugh" then
-- Creating the animation --
local a = Instance.new("Animation",p.Character)
a.AnimationId = "rbxassetid://6334058346"
local c = p.Character
local h = c:FindFirstChild('Humanoid')
-- Playing the animation --
local t = h:LoadAnimation(a)
t:Play()
local w = h.WalkSpeed
h.WalkSpeed = 0
wait(7.65)
h.WalkSpeed = w
--elseif m == prefix.."" then
--Code, basically if you want to make another chatted event
end
end)
end)
Something wrong with my code in any way?

1 comment
Oof, didn't work :|. Thanks for helping though