Sooo im currently creating a ragdoll on died script, which i got my ragdoll done already in another modul script. But how do i make it where when the player dies, the dead ragdoll/player will be cloned, so when they respawn, the body remains there. kind of like a corpse script. I will put a picture of my ragdoll activation script, but i dont know if i do need the module script to do this aswell
#Can anyone help me?
1 messages · Page 1 of 1 (latest)
Do you want it to be anchored?
is it less buggier?
Cuz if not i think you can just clone the limbs right before respawning
Buggy or not is the matter of your code buddy
All the other recommendations I got told me to clone it using that function command
But idk where to put it
Yeah like this
Just clone after the ragdoll
You might want to hide the player character though
Last time I did that it like stood still
Just make sure the player only sees 1
Yeah you need a delay
So I can do wait?
To let the ragdoll settle
Uhm sure but i’d just do it right before respawn
That way i dont have to hide the body or anything
But you’d have to make a custom respawn for that
Yeah
You could make respawn time inf and use loadcharacter
So what command hides the players body?
For consistent respawns
Just do a for loop with pairs
Ok
Then I clone?
** You are now Level 1! **
And set transparency to 1
Ok
Yeah clone them before hiding them
Mhm
Ohh ok
If u want it unanchored then u need the ballsocket on rhe clone too
Also id recommend making some folder to put the corpses in
That way its more organised
So if I want to clone it do I just do the function clone then the chsr?
Like for set ragdoll
Also yes I did make a folder
I was going to do that once I did the coding stuff
Uhm
Wdym by this?
So like, after module.setragdoll, is that where I can do the clone command on the character
So wait like 2 seconds?
So the char can fall over n stuff ykniw
I would make it right before respawn but yeah
** You are now Level 13! **
Wym?
Cuz I also want my ragdoll on death script to work
Just do it and show me the script of you have any problems
Also what i meant was where in my script would I put this
Like under the local module, mabye under the module.setragdoll
For that you shoold learn the differences between localscript and script
Depends on how you want it to work
Isn't local just client run?
Thats your customizability in your systems
Oh ok
Client side yes
Aka how you want your scripts to work together
So im doing just a normal script
I'm not using local
Cuz I want it on all the fellas
Alr
Like I said im kinda new
So
I only know few commands lol
So should I just put it under local module?
Ok I got it set up
** You are now Level 2! **