local plr = game.Players.LocalPlayer
local char = plr.CharacterAdded;wait()
local humanoid = char:FindFirstChild("Humanoid")
humanoid.Health = 0
humanoid.Died:connect(function()
wait(4)
if plr.leaderstats.Stage.Value == 1 then
char.Torso.CFrame = CFrame.new(workspace.Spawns.Stage1Spawn.Position) + Vector3.new(0,2,0)
end
end)
00:18:53.756 - ServerScriptService.StageSpawning:2: attempt to index local 'plr' (a nil value)
also, stop removing my questions i just want this script fixed then i will stop

2 comments
is this in a local script? if not then .LocalPlayer wont work
If they remove the question, they do it for a reason. https://scriptinghelpers.org/help/how-post-good-questions-answers