I have a little conflict with scripts, I recently put a script on my game that allows to extend the respawn time, but the problem is that this script uses this :
game.Players.CharacterAutoLoads = false
this is what allows the script to choose when to reappear, but the problem is that another one of my scripts conflicts and displays this error
23:08:27.845 - Workspace.SONIC.StatusChasing.Attack:40: attempt to index field'Character' (a nil value)
here is the line of code that is causing the problem :
for i,v in pairs(game.Players:GetChildren()) do
local range = (v.Character.HumanoidRootPart.Position - Torso.Position).magnitude
any suggestions ?

1 comment
You could just simply make a conditional statement(if-then) to check if the character exists or not.