This error says I am indexing nil with getdescendants on line 40 but there is no GetDescents() Function anywhere in the script or even in the local script that line 40 fires to. C an someone explain please?
show the script in serverscriptservice.serverscripts.ragdoll
Show the script wherever you are calling Ragdoll.Start(), you are not passing the character through as an argument
local char = plr.Character or plr.CharacterAdded:Wait()
for i,v in pairs(char:GetDescendants()) do
-- script
end
plr isn’t defined, also it’s required by a serverscript so there’s no localplayer, the script isn’t incorrect, he just isn’t passing the character through
I am confused, that line of code ahs nothing to do with the ragdoll.
Oh yeah i just realised, regardless, your error seems to be in the Ragdoll script, do you mind showing me where you are using Ragdoll.Start()?
Are you passing the correct arguments of ragdollModule.Start(character)
when you call it?
Where is the script when ragdollModule.Start(character)
is called?
Also you can make a check if it does/n’t.
if not game.Players:GetPlayerFromCharacter(character) then return end --put in ragdollModule
the passed arg should be
local player = --the player
local character = player.Character
ragdollModule.Start(character)
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.