|
| 12 Jun 2015 09:26 PM |
Hey, so I'm having problems with the script below for OnRespawn. As the game I'm working on requires FE (filtering enabled) to run removing it is out of option. Basically, when the player enters the game. The item is given to them perfectly fine, but then if they reset or die it will not work. Please help thanks, Cold.
Script:
game.Players.PlayerAdded:connect(function(newPlayer) newPlayer.CharacterAdded:connect(function(character) --Stuff inside here end) end)
There is no output.
|
|
|
| Report Abuse |
|
|
acidflip
|
  |
| Joined: 18 Jul 2012 |
| Total Posts: 886 |
|
|
| 12 Jun 2015 09:30 PM |
there is no output because you're not outputting anything in your code
make sense? |
|
|
| Report Abuse |
|
|
jbjgang2
|
  |
| Joined: 07 Feb 2010 |
| Total Posts: 8948 |
|
| |
|
|
| 13 Jun 2015 02:55 AM |
| I know, just had to state it incase somebody asked. |
|
|
| Report Abuse |
|
|
eLunate
|
  |
| Joined: 29 Jul 2014 |
| Total Posts: 13268 |
|
|
| 13 Jun 2015 02:59 AM |
| Did you disable CharacterAutoLoads? |
|
|
| Report Abuse |
|
|
jbjgang2
|
  |
| Joined: 07 Feb 2010 |
| Total Posts: 8948 |
|
|
| 13 Jun 2015 12:47 PM |
the reason that this is not working is because your having it run only when the player first joins the game
i could be wrong though
Swaggin' Since 2010 |
|
|
| Report Abuse |
|
|
|
| 13 Jun 2015 04:04 PM |
| When FE is disabled it works how its suppose to. When FE is enabled it does not. |
|
|
| Report Abuse |
|
|
acidflip
|
  |
| Joined: 18 Jul 2012 |
| Total Posts: 886 |
|
|
| 13 Jun 2015 04:07 PM |
| just post the full script because everything you're telling us is vague |
|
|
| Report Abuse |
|
|
TimeTicks
|
  |
| Joined: 27 Apr 2011 |
| Total Posts: 27115 |
|
|
| 13 Jun 2015 04:08 PM |
player.Changed:connect(function()
end) |
|
|
| Report Abuse |
|
|
|
| 13 Jun 2015 04:10 PM |
| Add wait(5) before the code is called and see if it works. If it works, then your problem is you need to wait for character before calling CharacterAdded. Also, PlayerAdded doesn't work unless you are on a Start Server > Start Player setup |
|
|
| Report Abuse |
|
|