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

Animation is not being played?

Asked by
MrSquer 15
9 years ago

I believe the problem is that it's overwritten, but idk how I'd fix that. This is the script in ServerScriptService (no output):

01local Monster = script["Lord Umberhallow"]
02 
03game.Players.PlayerAdded:connect(function(Player)
04    Player.CharacterAdded:connect(function(Char)
05        repeat wait() until game.ContentProvider.RequestQueueSize == 0
06        for _, v in pairs(Char:GetChildren()) do
07            if v:IsA("Hat") then
08                v:Destroy()
09            elseif v:IsA("CharacterMesh") then
10                v:Destroy()
11            end
12        end
13 
14        for _, v in pairs(Monster:GetChildren()) do
15            if v:IsA("CharacterMesh") then
View all 38 lines...

1 answer

Log in to vote
1
Answered by 9 years ago

I'm assuming you want the player to spawn WITH the walk/idle/jump/fall animation (Whichever animation this is) So I'll give you a script that does just that.

1wait(2) -- You can remove this if you'd like.
2game.Players.PlayerAdded:connect(function(player)
3    while not player.Character do wait() end
4    local character = player.Character
5    local animateScript = character.Animate
6    animateScript.fall.FallAnim.AnimationId = 'http://www.roblox.com/asset/?id=278621260'
7end)
Ad

Answer this question