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: Script Help

Previous Thread :: Next Thread 
Flame6264 is not online. Flame6264
Joined: 06 Mar 2012
Total Posts: 3379
21 Oct 2012 01:05 PM
function (onTouched)

game.Workspace.Fast Spongebob.Humanoid.Health = 7


So What I'm doing is a Tycoon know when a Roblox Character hits the Body of the Morph nothing Happens....
Report Abuse
IHateMittRomney is not online. IHateMittRomney
Joined: 05 Oct 2012
Total Posts: 69
21 Oct 2012 01:07 PM
script.Parent.Touched:connect(function(hit)
game.Players.LocalPlayer.Character.Humanoid.MaxHealth = 7
game.Players.LocalPlayer.Character.Humanoid.Health = 7
end)

Put this in a localscript

-sips tea-
Report Abuse
miz656 is not online. miz656
Joined: 19 Jul 2010
Total Posts: 15336
21 Oct 2012 01:13 PM
^

Neh neh...

script.Parent.Touched:connect(function(hit)
if hit.Parent:FindFirstChild("Humanoid") then
hit.Parent.Humanoid.Health = 7
end
end)
Report Abuse
IHateMittRomney is not online. IHateMittRomney
Joined: 05 Oct 2012
Total Posts: 69
21 Oct 2012 01:14 PM
Well, I'm going to go facepalm for 10 minutes.

-sips tea-
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