local Animation = game.ReplicatedStorage.Animation:Clone() -- The game.Replicatedstorage search the anim instance in replmicated storage, replace that if its not in replicated storage, then :Clone() clones it
Animation.Parent = Character.Humanoid -- If you have an character variable, use that, it paents the clone to the humanoid
local AnimationTrack = Character.Humanoid:LoadAnimation(Animation) -- it basically loads the animation, it just like, get the animation from the instance
AnimationTrack:Play() -- it plays the animation
#how do i make a animation play and looped
214 messages · Page 1 of 1 (latest)
** You are now Level 9! **
yeah
if ur animation is named "Animation" then dont hange
else u just change the name
in the script
keeping it in the rig is not that safe
yeah u should put it in the script
but change "game.ReplicatedStorage" by "script.Animation"
cuz now its in the script
the player have an humanoid
so it will play the naim
anim*
not a problem
if u wnat that only the player see it
then local
if u want that every one see it
then server
but
u should use that if its server : ```lua
game:GetService("Players").PlayerAdded:Connect(function(Player)
end)
u put the script inside
** You are now Level 1! **
normal
u didnt specified the character earlier
so the script doesnt know what is that
do modifs to the script
or do i do it myself and explain it?
okay
game:GetService("Players").PlayerAdded:Connect(function(Player) -- when a player joins, it fires a functio,
local Character = Player.Character or Player.CharacterAdded:Wait() -- for the first ase, it just gets the haracter in the 2nd case, it waits till the character gets added and loaded
local Humanoid = Character:FindFirstChildWhichIsA("Humanoid") --gets the player's humanoid
local Animation = script.Animation:Clone() --already explained
Animation.Parent = Character
local AnimationTrack = Humanoid:LoadAnimation(Animation)
AnimationTrack:Play() -- if u want it to play
AnimationTrack.Looped= true -- if u want it to loop
end)
all explainations in the script
does itsays anyerrors?
look at the output.
have u published the animation to robloc?
have u put the id in the anim?
is the rig that u used exactly like a roblox rig?
i mean
does it have same parts
not same colors
oh
is ur character like that in game or not
does the character has an humanoid or not?
the humanoid is like the heart of a model
if it doesnt have it its just a dead body
yeah i think
like without the humanoid u cnat even move ur character
yes
can u move ur character?
hm
weird
an u show me how the anim shuld look like
** You are now Level 2! **
and how u imported the anim to roblox too
is it with plugin?
hm
try that plugin :
but nvm
cuz u have to install a file
to export the rig anim
oh
and is the animation in the script?
anyway
just show me the anim in blender
yeah
but show me what ur haracter looksl ike in game
when u play
your player character
not the model
wait
u want the model to use the anim?
oooh my bad
im modify that then
yeah
local Character = script.Parent -- for the first ase, it just gets the haracter in the 2nd case, it waits till the character gets added and loaded
local Humanoid = Character:FindFirstChildWhichIsA("Humanoid") --gets the player's humanoid
local Animation = script.Animation:Clone() --already explained
Animation.Parent = Character
local AnimationTrack = Humanoid:LoadAnimation(Animation)
AnimationTrack:Play() -- if u want it to play
AnimationTrack.Looped= true -- if u want it to loop
```put the script in the character
and put an humanoid in it
in the character
no
script directly in the character
and the anim in the script
yes
yeah
ooo
is ur animation exported by u?
or imported by u?
published by u too?
cuz that error can't be fixed manually
try in roblox
publish the game and try
** You are now Level 3! **
yes
ayyy bro is chillin
click f9
F9
is there the same error?
if yes than its the aimation's problem
then*
i think u need to wait like a moment
or even days
but
its the animation loading that has a problem
the sanitized animation error is really annoying
how the animation id is
take a screenshot
of the animationID in the anim
yes
hmmmmMmMmMMmMmMmMMM
it happened to me and my friend like a week ago
it was just a import problem for us
like when i import it only me can use it
and if he imports then only he can use
but
wait
is ur animation been imported to the same game?
did u import it in that exact place?
cuz it can be sum place issues
is ur animation been imported in an other place/experiment and u use it in that one?
all in that place?
hm
is ur game created by a group or just u
the anim published by u or a group?
hm
i dont see chy it doesnt work
why*
sanitized id is weird
maybe u should wait till it gets fully loaded
like in a random moment it'll work
the anim is created for 30mins?
how much
seconds?
wait an hour (not in game) and maybe it'll load
cuz assets doesnt load instantly
u told me its been created for 30s
no i mean
the animation is created for how much time
since when its published
** You are now Level 4! **
and imported
to roblox?
that is weird
are u sure ur game is published by only you
alone
hm
try the plugin
blender animations
waittt
the anim blender works only for roblox rigs i think
but
nvm
try it
and lets see
u just open the plugin and u click on ur rig then u click on "import animation(files bulk)"
its in the warning
u have the plugin?
u clicked on ur rig?
is there any warnings here ?
click on that
then select the file that contains the anim
but u have to import in into a file in blender
i think its called like baking
or smth
did u do everything
did u select the anim file
cuz it says it has no ata
data*
send me ur blend anim
the file
lvl?
u needa import this one in rblx
in the plugin*
and in the file thing
not the other one
.
send me the rig too
ima try in my studio
waittttttttttttttttttttttttttttt
dont mind the msg
just import to roblox (file)*
then u go to rig animator (the classic on)
u go in import
and u select a file
the file it gave u
in the plugin
nvm, when u finished the umporting
u click on that
u save
and copy the id it giveu
then u replace the old anim it by the one u copied
no
no need
just click on th upload animation in the plugin
i forgot that button
so u copy
and u go in the anim id
then u paste it
in it
now it should workk
if u pasted in the anim
still same err?
HmMmMmmMmMmMmMmMmMm
I'm not animator
go in #🏃︱animating
maybe u'll find help
i am scripter i just did the script but idk hwat is going on for the anim
yes but they should know why
its not playing
or in #1006356488912121967
wtf never put a script in replicatedStorage
who said i told him to put the script in replicated storage
** You are now Level 10! **
ph