#Animation Scripting
1 messages · Page 1 of 1 (latest)
could we see the code?
I got it off of a youtube tutorial
Its a simple walking animation import but the code doesnt really make sense to me
Wth is humanoiddescription
I dont know, imnot experienced in scripting thats why I came for questions
can you check if the walkanimation property is equal to the id you set
It seems right
Another person sent me a full script and now its way different
wait
is ur walk anim spoofe
d
?
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
No actually I forgot to do that
in Animate script
wait
is ur walk anim made by u
or someone other
** You are now Level 6! **
Me
and paste
Thank You
yeah copy the localscript and paste it in startercharacterscript
youll find something like thso
this*
This is where im currently at right now
Then I paste the ID in place of the https right?
? what's wrong
** You are now Level 4! **
you need the full http://
Is this correct or did I mess up
116129351825525
yes now
This one correct?
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
** You are now Level 3! **
so delete it and replace it?
so leave it? lol
ye
now my character does the dumb stand still thing
Now its a problem with my animation
I just enjoy the creating of them
The creation part is fun yeah
But now that I see this side i think i beg to differ
implementing them not so fun
Not at all
roblox changed integrating animations multiple times lol
now everyone is clueless about it prrty much
But I appreciate all the help you're making this all the more easier on me and my team
Yea np
wtf is humanoiddescription 😭 just change the walk id under the animate script
they tried -_-
not here
when a player joins
they get a animate script
and children of the animate scripts are values
two of them are "walk" and "run", in a loop just change their animation id's
** You are now Level 10! **
And how would I do that
level 10 woo!
Now I need to see alot more
let me open up one of my projects, the code is relatively simple
Alright
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
balls
balls
So this i remove?
Thats exactly why i only highlighted lol
you can remove it out of runtime as its added to the player during runtime
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)
this is the full page
then change the ids for walk and run
yes!
also remove "p.Character:FindFirstChildOfClass("Humanoid").WalkSpeed = 12"
as it makes your character slower
Done
okay! try playing the game
there can be a slight delay since we arent loading everything prior but it is what it is
wait im also supposed to delete the other script right?
yes
like fully remove it from my studio right?
yup!, dont worry roblox automatically adds it back whenever a player joins
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
Ohh okay
Ill test this out
lmk how it goes!
and its working!!!
yay!! glad i could help
yw!
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)
everyone
we're not changing how roblox animates we're simply changing the id's roblox uses to animate the player
thats so cool omg omgomgomgogmgkgm
I had someone join to test itout and they say they cant see it
? is this in teamtest, can you see them moving?
Yeah its in team test
I can see them moving but they dont see the animation
well actually i probably couldve used for loops but then i'd have to define the id's in an array
so nty
perhaps the animation didnt load on their end?
if you can see them being animated then its defo an issue on their client
And how can I fix that?
tell them to rejoin
Alright thank you for everything!!
yw!
real i thought changing the id in animNames would do shit
I did too when I was starting this up
The Animation still isnt visible on their screens
? thats odd, please send over your output
ah! yup
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.
Thank you so much!