#Animation Scripting

1 messages · Page 1 of 1 (latest)

hollow swan
#

Whenever I try to script my animation into roblox it doesn't really play it or seem like the code is correct. Is there anything I can get help with?

proven night
#

could we see the code?

hollow swan
#

I got it off of a youtube tutorial

#

Its a simple walking animation import but the code doesnt really make sense to me

distant slate
hollow swan
ember goblet
hollow swan
#

Another person sent me a full script and now its way different

oblique owl
#

is ur walk anim spoofe

#

d

#

?

obsidian tapir
#

For custom animations

#

grab the Animation script from the player in workspace when you're in game

#

and put it in StarterCharScripts

#

and then modify the animation for walking below

#

and change the id of walking animation to yours

hollow swan
obsidian tapir
#

in Animate script

oblique owl
#

is ur walk anim made by u

#

or someone other

cold pythonBOT
#

studio** You are now Level 6! **studio

oblique owl
#

if it not made by u

#

go spoof

#

it

#

first

#

get the id

hollow swan
oblique owl
#

and paste

oblique owl
#

script problem

hollow swan
ember goblet
#

yeah copy the localscript and paste it in startercharacterscript

#

youll find something like thso

#

this*

hollow swan
#

This is where im currently at right now

obsidian tapir
#

id=your_animation_id

#

under the walk value

#

or wtv anim it is

hollow swan
#

Then I paste the ID in place of the https right?

obsidian tapir
#

?id=------

#

the number there

hollow swan
#

Ohh okay thank you

#

Now something is wrong wiht my animation lol

obsidian tapir
#

? what's wrong

cold pythonBOT
#

studio** You are now Level 4! **studio

hollow swan
#

This is currently what im looking at

obsidian tapir
#

you need the full http://

hollow swan
#

Is this correct or did I mess up

obsidian tapir
#

you need to publish the animation

#

then you grab the id

hollow swan
#

116129351825525

obsidian tapir
#

yes now

hollow swan
#

This one correct?

obsidian tapir
#

you copy the full link from a different script

#

from a different animation

#

and replace the numbers

#

at the ned

#

end

#

and replace them

#

with yours

#

and you should be done

hollow swan
cold pythonBOT
#

studio** You are now Level 3! **studio

hollow swan
#

This?

#

I changed the numbers already on the walk id

obsidian tapir
#

yes

#

and also the run should be the same

hollow swan
#

so delete it and replace it?

obsidian tapir
#

oh wait nvm

#

its the default

#

i forgor

hollow swan
#

so leave it? lol

obsidian tapir
#

ye

hollow swan
#

now my character does the dumb stand still thing

#

Now its a problem with my animation

obsidian tapir
#

Animations are a pain in the ass most of the time

#

lmao

hollow swan
#

I just enjoy the creating of them

obsidian tapir
#

The creation part is fun yeah

hollow swan
#

But now that I see this side i think i beg to differ

obsidian tapir
#

implementing them not so fun

hollow swan
#

Not at all

obsidian tapir
#

roblox changed integrating animations multiple times lol

#

now everyone is clueless about it prrty much

hollow swan
#

But I appreciate all the help you're making this all the more easier on me and my team

obsidian tapir
#

Yea np

frozen bloom
frozen bloom
#

when a player joins

#

they get a animate script

#

and children of the animate scripts are values

obsidian tapir
#

Yeah you can override it

#

delete the original and add your own

frozen bloom
#

two of them are "walk" and "run", in a loop just change their animation id's

cold pythonBOT
#

studio** You are now Level 10! **studio

hollow swan
#

And how would I do that

frozen bloom
#

level 10 woo!

hollow swan
#

Now I need to see alot more

frozen bloom
hollow swan
#

Alright

frozen bloom
#
game.Players.PlayerAdded:Connect(function(p)
    p.CharacterAdded:Wait()
    p.Character:FindFirstChildOfClass("Humanoid").WalkSpeed = 12
    while task.wait(1) do
        p.Character:FindFirstChild("Animate"):FindFirstChild("walk"):FindFirstChildOfClass("Animation").AnimationId = "rbxassetid://102409881449517"
        p.Character:FindFirstChild("Animate"):FindFirstChild("run"):FindFirstChildOfClass("Animation").AnimationId = "rbxassetid://102409881449517"
        p.Character:FindFirstChild("Animate"):FindFirstChild("idle"):FindFirstChild("Animation1").AnimationId = "rbxassetid://78695909360609"
        p.Character:FindFirstChild("Animate"):FindFirstChild("idle"):FindFirstChild("Animation2").AnimationId = "rbxassetid://89363201659701"
        p.Character:FindFirstChild("Animate"):FindFirstChild("jump"):FindFirstChildOfClass("Animation").AnimationId = "rbxassetid://76076287262020"
        p.Character:FindFirstChild("Animate"):FindFirstChild("fall"):FindFirstChildOfClass("Animation").AnimationId = "rbxassetid://118750457630828"
    end
end)
#

you can remove all the sections other then walk and run

#

also remove humanoid.walkspeed = 12

fading wasp
#

balls

frozen bloom
hollow swan
#

So this i remove?

frozen bloom
#

wait

#

where did u put that?

hollow swan
#

Thats exactly why i only highlighted lol

frozen bloom
#

you can remove it out of runtime as its added to the player during runtime

hollow swan
frozen bloom
#

make a new script in serverscriptservice and paste this

game.Players.PlayerAdded:Connect(function(p)
    p.CharacterAdded:Wait()
    p.Character:FindFirstChildOfClass("Humanoid").WalkSpeed = 12
    while task.wait(1) do
            p.Character:FindFirstChild("Animate"):FindFirstChild("walk"):FindFirstChildOfClass("Animation").AnimationId = "rbxassetid://102409881449517"
        p.Character:FindFirstChild("Animate"):FindFirstChild("run"):FindFirstChildOfClass("Animation").AnimationId = "rbxassetid://102409881449517"

    end
end)
hollow swan
#

this is the full page

frozen bloom
#

then change the ids for walk and run

frozen bloom
#

since youre not in runtime

hollow swan
#

Like so?

#

The ids were changed

frozen bloom
#

also remove "p.Character:FindFirstChildOfClass("Humanoid").WalkSpeed = 12"

#

as it makes your character slower

hollow swan
#

Done

frozen bloom
#

there can be a slight delay since we arent loading everything prior but it is what it is

hollow swan
#

wait im also supposed to delete the other script right?

hollow swan
#

like fully remove it from my studio right?

frozen bloom
#

we just dont want duplicates as the script i sent over relies on one copy to be in the player

#

multiple copies will mess it up

hollow swan
#

Ohh okay

ember goblet
hollow swan
#

Ill test this out

frozen bloom
hollow swan
#

and its working!!!

ember goblet
#

hacks

#

🏀

frozen bloom
hollow swan
#

Thank you so much

#

Thats going to make everything so much easier

frozen bloom
hollow swan
#

and will this be for everyone in the server?

#

or js me

frozen bloom
#
game.Players.PlayerAdded:Connect(function(p)
    p.CharacterAdded:Wait()
    p.Character:FindFirstChildOfClass("Humanoid").WalkSpeed = 12
    while task.wait(1) do
        p.Character:FindFirstChild("Animate"):FindFirstChild("walk"):FindFirstChildOfClass("Animation").AnimationId = "rbxassetid://102409881449517"
        p.Character:FindFirstChild("Animate"):FindFirstChild("run"):FindFirstChildOfClass("Animation").AnimationId = "rbxassetid://102409881449517"
        p.Character:FindFirstChild("Animate"):FindFirstChild("idle"):FindFirstChild("Animation1").AnimationId = "rbxassetid://78695909360609"
        p.Character:FindFirstChild("Animate"):FindFirstChild("idle"):FindFirstChild("Animation2").AnimationId = "rbxassetid://89363201659701"
        p.Character:FindFirstChild("Animate"):FindFirstChild("jump"):FindFirstChildOfClass("Animation").AnimationId = "rbxassetid://76076287262020"
        p.Character:FindFirstChild("Animate"):FindFirstChild("fall"):FindFirstChildOfClass("Animation").AnimationId = "rbxassetid://118750457630828"
    end
end)

here is the entire script if you plan on making more animations (e.g, idle, jump)

frozen bloom
#

we're not changing how roblox animates we're simply changing the id's roblox uses to animate the player

hollow swan
#

Really fast

#

but

ember goblet
#

thats so cool omg omgomgomgogmgkgm

hollow swan
#

I had someone join to test itout and they say they cant see it

frozen bloom
hollow swan
#

Yeah its in team test

hollow swan
frozen bloom
#

so nty

frozen bloom
#

if you can see them being animated then its defo an issue on their client

hollow swan
#

And how can I fix that?

frozen bloom
hollow swan
#

Alright thank you for everything!!

frozen bloom
ember goblet
#

real i thought changing the id in animNames would do shit

hollow swan
#

I did too when I was starting this up

hollow swan
frozen bloom
hollow void
#

thats what it says

frozen bloom
#

this is a common issue, i solved it in this thread too!

#

until the id is sanitized in the group it wont be visible to others in roblox studio

#

it'll work fine in-game though.

#

so for now publish your game and test it through the roblox player.

hollow void
#

Thank you so much!