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: When I jump, I want to kill my friend.

Previous Thread :: Next Thread 
1cooldude361 is not online. 1cooldude361
Joined: 13 Mar 2010
Total Posts: 4403
16 Sep 2012 04:12 PM
How would I do it? Does it involve if and then? I tried, and failed. I'm in SB. This is what I typed:

if game.Workspace["1cooldude361"].Humanoid.Jump = true
then game.Workspace.untamedangel44.Humanoid.Health = 0
end

So, what should it be?

A minimum of 15 seconds has passed since my last post.
Report Abuse
doombringer42 is not online. doombringer42
Joined: 13 Nov 2007
Total Posts: 5445
16 Sep 2012 04:14 PM
human = Workspace["1cooldude361"].Humanoid
human.Changed:connect(function(p)
if p == "Jump" and human.Jump then
pcall(function() Workspace.untamedangel44.Torso:BreakJoints() end)
end
end)

may not work, i didn't test it

¬ Scripter Tier-2, LuaLearners Elite ♣ scripting teacher/freelance worker ♣ send me trade requests!
Report Abuse
AgentFirefox is not online. AgentFirefox
Top 100 Poster
Joined: 20 Jun 2008
Total Posts: 22404
16 Sep 2012 04:25 PM
The Humanoid has a Jumping event you could use.
Report Abuse
doombringer42 is not online. doombringer42
Joined: 13 Nov 2007
Total Posts: 5445
16 Sep 2012 04:32 PM
oops lol.

¬ Scripter Tier-2, LuaLearners Elite ♣ scripting teacher/freelance worker ♣ send me trade requests!
Report Abuse
doombringer42 is not online. doombringer42
Joined: 13 Nov 2007
Total Posts: 5445
16 Sep 2012 04:34 PM
Workspace["1cooldude361"].Humanoid.Jumping:connect(function()
Workspace.untamedangel44.Torso:BreakJoints()
end)

no need for pcall as the probability of the script erroring would be very very low.

¬ Scripter Tier-2, LuaLearners Elite ♣ scripting teacher/freelance worker ♣ send me trade requests!
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