Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

What's wrong with my group only animation script?

Asked by
Seraine 103
9 years ago

This script should check if you're in a certain group, if you are then if you say "/e party", your character performs the animation. If you're not a member of the group, nothing happens if you say the command. Also how should I make the animation looped? Right now it just plays once :L

game.Players.PlayerAdded:connect(function(player)
    player.Chatted:connect(function(msg)
        if msg == '/e party' and player:IsInGroup(846314) ~= true then-- Type the Dance Name where 'dancename' is
            player.animationID = 172807805 --id of animation
            script:remove()
        end
    end)
end)

Thanks!

Answer this question