generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripting Helpers
Home Search
 

Re: Im confused

Previous Thread :: Next Thread 
sisimizi is not online. 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
EXHyperBlack is not online. EXHyperBlack
Joined: 22 Aug 2010
Total Posts: 383
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
Taaztreyon is not online. Taaztreyon
Joined: 07 Aug 2011
Total Posts: 37
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 is not online. 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 is not online. sisimizi
Joined: 30 Nov 2008
Total Posts: 121
15 Aug 2011 03:44 AM
@Taaz. That is loopkill.
Report Abuse
Taaztreyon is not online. Taaztreyon
Joined: 07 Aug 2011
Total Posts: 37
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 is not online. 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 is not online. 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
Taaztreyon is not online. Taaztreyon
Joined: 07 Aug 2011
Total Posts: 37
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
Taaztreyon is not online. Taaztreyon
Joined: 07 Aug 2011
Total Posts: 37
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
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image