Is there a way to do this since badges are handled on the server side? Here is my local script if it helps.
local animation = Instance.new("Animation")
animation.AnimationId = "rbxassetid://636749560"
local animtrack = nil
local canplay = true
local playe = game.Players.LocalPlayer
local char = game.Players.LocalPlayer.Character
local badgeID = 637991953
local badgeService = game:GetService("BadgeService")
function processCommand(message,recipient)
if message == "/e dab" then
print("part1")
if canplay then
print("part2")
canplay = false
animtrack = game.Players.LocalPlayer.Character.Humanoid:LoadAnimation(animation)
print("part3")
animtrack:Play()
badgeService:AwardBadge(playe.userId, badgeID)
print("part4")
canplay = true
end
end
end
playe.Chatted:connect(processCommand)
Thanks!

3 comments
Thanks!
It says on line 37 that there is an infinite yield possible? Could you help me with this?
Wait NVM figured it out.