Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

What's wrong with Line 148??

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

✓ Accepted answer
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

1 comment

0

Oh.. Thanks for that! One typo messes up everything

This discussion is preserved as it was. New answers, comments, and votes are closed.