Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Okay, seriously, i need help on this script. Can anyone help? [closed]

Asked by
bossay6 62
7 years ago
01local plr = game.Players.LocalPlayer
02local char = plr.CharacterAdded;wait()
03local humanoid = char:FindFirstChild("Humanoid")
04humanoid.Health = 0
05humanoid.Died:connect(function()
06    wait(4)
07    if plr.leaderstats.Stage.Value == 1 then
08        char.Torso.CFrame = CFrame.new(workspace.Spawns.Stage1Spawn.Position) + Vector3.new(0,2,0)
09    end
10end)

00:18:53.756 - ServerScriptService.StageSpawning:2: attempt to index local 'plr' (a nil value)

0
Please make your title about your script's problem. hiimgoodpack 2009 — 7y

Closed as Non-Descriptive by IcyEvil, iamnoamesa, PyccknnXakep, and GoldenPhysics

This question has been closed because its title or content does not adequately describe the problem you are trying to solve.
Please ensure that your question pertains to your actual problem, rather than your attempted solution. That is, you were trying to solve problem X, and you thought solution Y would work, but instead of asking about X when you ran into trouble, you asked about Y.

Why was this question closed?