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

What's wrong with Line 148??

Asked by 10 years ago

Apparently, I saw this error:

21:20:58.381 - Palyers is not a valid member of DataModel 21:20:58.382 - Script 'Players.Player1.Backpack.LocalScript1', Line 148 21:20:58.382 - Stack End

game.Palyers.LocalPlayer.Character.Humanoid.Died:connect(function() --Line 148
    if game.Players.LocalPlayer.TeamColor == game.Teams.Playing.TeamColor then
        a = game.Lighting.Starter:Clone()
        a.Parent = script.Parent
    end
end) --Line 153

Could someone please tell me what's wrong with this and how I can fix it? Thanks! This IS in a LocalScript.

1 answer

Log in to vote
4
Answered by 10 years ago
game.Players.LocalPlayer.Character.Humanoid.Died:connect(function() --Line 148
    if game.Players.LocalPlayer.TeamColor == game.Teams.Playing.TeamColor then
        a = game.Lighting.Starter:Clone()
        a.Parent = script.Parent
    end
end) --Line 153

You misspelled Players on line 148, you said game.Palyers instead of game.Players

0
Oh.. Thanks for that! One typo messes up everything fahmisack123 385 — 10y
Ad

Answer this question