script for the lazy: wait() local humanoid = script.Parent.Humanoid humanoid.BreakJointsOnDeath = false local DA = Instance.new("Animation") DA.AnimationId = "rbxassetid://0" -- your animation id local DeathAnimation = humanoid:LoadAnimation(DA) humanoid.HealthChanged:Connect(function(Health) if Health < 0 then print("died") script.Parent.HumanoidRootPart.Anchored = true DeathAnimation:Play() wait(2) --seconds before destroy character you can set to 5 if u want script.Parent:Destroy() end end)
If someone's code not working then try this wait() local Humanoid = script.Parent.Humanoid Humanoid.BreakJointsOnDeath = false local DA = Instance.new("Animation") DA.AnimationId = "rbxassetid://13908385003" local DeathAnimation = Humanoid:LoadAnimation(DA) Humanoid.HealthChanged:Connect(function(Health) if Health
You made the animation looped you can do this Create an animation Check if the rewind button is grey it should be grey not blue Publish Copy the id Or You can check in scripts if it's looped = true then change it to looped = false I hope this helps
@@4Lg_Animates is there way to check error? Or like what is stopping it cuz it works in all my other games as I mentioned only one doesn't want to work
Guys! I know how to fix your character doesn't respawn. Just change local script to a script then it's ok! Please like if helps
how to do that?
Tysm bro it helps so much
bro just create a new scrip and copy the code
@@BobTheNoobie99
Thank you so much
it didnt work
Join to our discord server here
now!: discord.gg/VfSjWQpe54
forget the script, your death animation is amazing
(and yeah thanks for the script)
its not his...
script for the lazy:
wait()
local humanoid = script.Parent.Humanoid
humanoid.BreakJointsOnDeath = false
local DA = Instance.new("Animation")
DA.AnimationId = "rbxassetid://0" -- your animation id
local DeathAnimation = humanoid:LoadAnimation(DA)
humanoid.HealthChanged:Connect(function(Health)
if Health < 0 then
print("died")
script.Parent.HumanoidRootPart.Anchored = true
DeathAnimation:Play()
wait(2) --seconds before destroy character you can set to 5 if u want
script.Parent:Destroy()
end
end)
IT WONT WORK IT SAYS ITS DISABLED WAAAAAA😭😭😭😭😭
wont work my character just goes plank then falls while no animation
@@miniopacus i think it works for r15 or r6.
@@mycatstares ok lemme try rq
it work for me
Thank you so much for the help!
Cool ty for that sir!
can u make the die and touchey button like slap battles
i alr made it in my video i can make it for you
When I change it to r6 it makes my character first person
Did you put a script called "Put me in StarterGUi" script in "StarterGUi". If yes then that's the reason.
@@4Lg_Animates i didnt
@@MeloMPGwelp I can't understand what is happening
i click on animation editor but he not do anything
Did you clicked at the model too?
Why won't it work if u get killed by a sword
theres just one problem if you have existing animations it doesnt work what do i do?
publish your animation and copy the id and place the animation id in the script like in the tutorial
@@andreadecapitani4377 still doesnt work bro
If someone's code not working then try this
wait()
local Humanoid = script.Parent.Humanoid
Humanoid.BreakJointsOnDeath = false
local DA = Instance.new("Animation")
DA.AnimationId = "rbxassetid://13908385003"
local DeathAnimation = Humanoid:LoadAnimation(DA)
Humanoid.HealthChanged:Connect(function(Health)
if Health
can you make it where it dosent loop over and over even wehn i ddint set my animation to loop?
Sure lemme try
@@Tjayyk1lledu try setting your animation priority to actions
@@shubhayukundu6625 alright ty
TY! IS WORK!!!!!!!! THXSM
why didnt you place the full link!?!
How do you make it so i doesn't do a loop because when i die the animation keeps playing until i respawn
You made the animation looped you can do this
Create an animation
Check if the rewind button is grey it should be grey not blue
Publish
Copy the id
Or
You can check in scripts if it's looped = true
then change it to
looped = false
I hope this helps
@@mycatstares okay
wow
When I die it will make my avatar dissapear
Did you putted ur game's settings to be in "R6"? If not then that's the problem
what to do when Player:Move Called but player currently has no humanoid it keeps messing up the animation
it happens because the script destroyed your character model
If you want it to work when u kill somebody just change the script from local to a regular script
Thank you buddy
how do i do that?
@@morganvr6665 instead of inserting the local script with the tv icon insert the plain white script with no icons on it
wut
@@tarts5688for the animation script?
you popo in a nice way
How to make it play death animation then it ragdolls?
works in studio not in game?? why?
Because you probably did something wrong. Pls re-watch the video to see what you did wrong!
@@4Lg_Animates the thing is it works in all games I make but only one not why
@@4Lg_Animates is there way to check error? Or like what is stopping it cuz it works in all my other games as I mentioned only one doesn't want to work
@Stanad ty slot it worked but why does it only work if u reset for example if you get killed by sword it won't work
The link doesn’t work??
last step was confused. only 1 option was shown in the game settibg
i did all the correct steps bt now it doesnt work. its in r6 still doesnt work
i have the old one for some reason so I can't find a good video for that
could this work if i made the animations r15?
Yep but you have to set ur game to be for "R15" instead of "R6" in the game's settings to the avatar option
@@4Lg_Animates ok thanks
@@w0lfnotepic71 No problem
Thank you very much it helped me a lot, but I have an error when I die I just stay there lying there and I don't reappear
did you solve it?
same...
Man i found it im dumb
does it work in first person?
Yep
nani
i cant find the models
its nice and all but why does the character dissapear after like half a second
idk, i change it to 4 its not dissapear
for some reason i dont respawn
what happened to the other two gamers
Bro went flop.
is anim priority action
How do you find the script
emmmm bro it just says it in the vid
it isnt working
You probably did something wrong,the tutorial is working dude
@@4Lg_Animates i dont really know how to do the id thing, but i tried, the animation wont play tho
Fun fact! I don’t care if you are first
im 2th