‘Ok so as I said I am having lag issues because bodies are building up causing lag, can anyone look at this script and tell me what Im doing wrong? and if possible fix it for me? explain it also if you fix it? thanks!’`
var body : GameObject; —Is supposed to tell that the parent of the script will remove
setTimeout(cleandeadbodies(),4000); —a timer before the function
function cleandeadbodies(){ —the function
body.Parent = nil; —deletes the ragdoll/dead body
}`