andr315j
|
  |
| Joined: 25 Mar 2012 |
| Total Posts: 518 |
|
|
| 20 May 2017 02:56 PM |
Why is this script loop spawning me?
script:
game.Players.PlayerAdded:connect(function(Player) Player.CharacterAdded:connect(function(Character) wait() if game.ReplicatedStorage.Settings.DeathSet.Value == false then Player:LoadCharacter() Player.Team = game.Teams.Death game.ReplicatedStorage.Settings.DeathSet.Value = true --Player:LoadCharacter() elseif game.ReplicatedStorage.Settings.DeathSet.Value == true then if game.ReplicatedStorage.Settings.CanJoin.Value == true then Player:LoadCharacter() Player.Team = game.Teams.Runners --Player:LoadCharacter() elseif game.ReplicatedStorage.Settings.CanJoin.Value == false then Player:LoadCharacter() Player.Team = game.Teams.Spectators --Player:LoadCharacter() else Player:LoadCharacter() end end end) end) |
|
|
| Report Abuse |
|
|
andr315j
|
  |
| Joined: 25 Mar 2012 |
| Total Posts: 518 |
|
|
| 20 May 2017 03:15 PM |
| Anyone got an answer to this? |
|
|
| Report Abuse |
|
|
ahwz
|
  |
| Joined: 01 Apr 2010 |
| Total Posts: 3230 |
|
|
| 20 May 2017 03:17 PM |
You have LoadCharacter inside of a CharacterAdded
So everytime you spawn it runs that code in turn will keep calling the loadcharacter method.
|
|
|
| Report Abuse |
|
|