Script error says "LocalPlayers is not a valid member of DataModel"
Here is the script>
wait(3) Player = game.LocalPlayers.Character animation1 = Player.Humanoid.LoadAnimation(script.Animation1) animation2 = Player.Humanoid.LoadAnimation(script.Animation2) animation3 = Player.Humanoid.LoadAnimation(script.Animation3) CanEmote = true
script.Parent.MouseButton1Click:connect(function() local emote = math.random(1,3) if emote == 1 and CanEmote == true then animation1:Play() CanEmote=false wait(2) CanEmote=true
else if emote == 2 and CanEmote == true then
animation2:Play()
CanEmote=false
wait(2)
CanEmote=true
else if emote == 3 and CanEmote == true then
animation3:Play()
CanEmote=false
wait(2)
CanEmote=true
end
end end end)

1 comment
You should edit your question to use Lua code formatting (select your code and press the the purple lua button)