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

Why isn't a team starter pack working?

Asked by 8 years ago
local plr=game.Players.LocalPlayer
if plr.Team=="Blue" then 
    game.Lighting.M4:Clone().Parent=plr.Backpack
    print("It's working")
end

As the title says, when I launch the game up to test, it doesn't work, doesn't show any errors, or prints anything. Am I supposed to use a service in my script? Since after all, a Team is a property of a Player, and this is a local script.

1 answer

Log in to vote
0
Answered by 8 years ago

This is an easy and quick fix. Just replace "Blue" with game.Teams.Blue

Ad

Answer this question