player = game.Players.LocalPlayer
Team = Instance.new("Team")
Team.Name = "Owner"
Team.AutoAssignable = false
Team.TeamColor = BrickColor.Red()
Team.Parent = game.Teams
if player.Name == "VIImansxryVII" then
player.Team = game.Teams("Owner")
end
why this script isn't working ?
the team is there but i dont gettin' moved to the team
(Workspace.VIImansxryVII.Dev Script:10: attempt to index nil with 'Name')

4 comments
Is this put in a local script?
no its normal script
You can't access LocalPlayer from a serverside script, you can only get LocalPlayer from a local script. Try using the PlayerAdded event
thank you too was offline a while