Hi i have a problem with my script.I was trying to make the script where i want it to make players from 4 different teams spawn with a default npc that is that different from other teams for example for team xbox i want them to have a default npc for those players that are in that team that looks different from from the other team default npc.I recieved help from errors i had in the script,and the starter player isn't spawning the NPCs i made for each team what is wrong with my script?
--Variables for teams local Team = game.Teams.Xbox local Team = game.Teams.Playstation local Team = game.Teams.Nintendo local Team = game.Teams.PC --Variables for Team spawns local spawns = game.workspace.Nintendo.Nspawns local spawns = game.workspace.PC.PCspawns local spawns = game.workspace.Playstation.PSspawns local spawns = game.workspace.Xbox.Xspawns --Variables for TeamNpc local TeamDefaultNPC = game.StarterChracter.XboxNpc local TeamDefaultNPC = game.StarterChracter.PlaystationNpc local TeamDefaultNPC = game.StarterChracter.PcNPC local TeamDefaultNPC = game.StarterChracter.NintendoNPC --Player Variable local StarterCharacter = game.StarterChracter function myFunction () if spawn == game.workspace.Pc.PCspawns then StarterChracter = game.StarterPlayer.PcNPC elseif spawn == game.workspace.xbox.Xspawns then StarterChracter = game.StarterPlayer.XboxNpc elseif spawn == game.workspace.Nintendo.Nspawns then StarterChracter = game.StarterPlayer.NintendoNPC elseif spawn == game.workspace.Playstation.PSspawns then StarterChracter = game.StarterPlayer.PlaystationNpc end end