sisimizi
|
  |
| Joined: 30 Nov 2008 |
| Total Posts: 121 |
|
|
| 15 Aug 2011 03:33 AM |
Ok, I need help fixing this script. I want it to kill player when he joins game. I want it kill only once when join.
game.Players.PlayerAdded:connect(function(Player) wait(1) game.Players.Player.Health = 0 end)
|
|
|
| Report Abuse |
|
|
|
| 15 Aug 2011 03:38 AM |
You see when the player enters the character is not instantly added so you need something like repeat wait(0.2) until Player.Character ~= nil then Player.Character:BreakJoints()
So somehting like that |
|
|
| Report Abuse |
|
|
|
| 15 Aug 2011 03:41 AM |
No, just use this:
game.Players.PlayerAdded:connect(function(pl) pl.CharacterAdded:connect(function() pl.Character.Humanoid.Health = 0 end) end) |
|
|
| Report Abuse |
|
|
sisimizi
|
  |
| Joined: 30 Nov 2008 |
| Total Posts: 121 |
|
|
| 15 Aug 2011 03:41 AM |
| Not instantly added? But i use this script with GUI and many other things, and it works. Now i just need to make it kill only once when player join game |
|
|
| Report Abuse |
|
|
sisimizi
|
  |
| Joined: 30 Nov 2008 |
| Total Posts: 121 |
|
| |
|
|
| 15 Aug 2011 03:48 AM |
| Sorry, I saw HyperBlack's loop and I apparently thought we were loopkilling. My bad. ._. I would just go with what Hyper said and use a repeat and a breakjoints method. |
|
|
| Report Abuse |
|
|
sisimizi
|
  |
| Joined: 30 Nov 2008 |
| Total Posts: 121 |
|
|
| 15 Aug 2011 03:49 AM |
| Cmon i need someone to help me fix this. I need it kill once. |
|
|
| Report Abuse |
|
|
sisimizi
|
  |
| Joined: 30 Nov 2008 |
| Total Posts: 121 |
|
|
| 15 Aug 2011 03:51 AM |
| I dont know guys... scripts you gave me doesnt work. |
|
|
| Report Abuse |
|
|
|
| 15 Aug 2011 03:54 AM |
| We didn't give you the script, we just gave you the parts. All you have to do is adapt it to what you need it to do. |
|
|
| Report Abuse |
|
|
|
| 15 Aug 2011 03:59 AM |
| ARE YOU KIDDING ME!!! I just typed like a 20 lined script with explainations and Roblox said I typed a 'bad' word and it removed it! There was NOTHING remotely bad in it :( |
|
|
| Report Abuse |
|
|