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 » Scripters
Home Search
 

Scripting broken?

Previous Thread :: Next Thread 
XxBoombotkiller is online. XxBoombotkiller
Joined: 02 Oct 2014
Total Posts: 35
30 Jul 2017 01:19 PM


Whenever I try to put a script on a brick of some sort, it doesn't work. I tried to put a kill script on a brick and it doesn't work. I searched up some scripts on Chrome and they don't work either. Do I need to put a different kind of script instead of the regular one? (Local, Module, etc.) Or is this just another failed ROBLOX update? I need help.

-Boom


XxBoombotkiller
Report Abuse
XxGam3rProxX is not online. XxGam3rProxX
Joined: 27 May 2013
Total Posts: 20
30 Jul 2017 01:21 PM
Post the code to your script
Report Abuse
XxBoombotkiller is online. XxBoombotkiller
Joined: 02 Oct 2014
Total Posts: 35
30 Jul 2017 01:26 PM
Don't have a code but here's the script


function onTouched(Part)
local h = Part.Parent:FindFirstChild("Humanoid")
if h~= nil then
h.Health = 0
end
end
script.Parent.Touched:connect(onTouched


XxBoombotkiller
Report Abuse
TheeDeathCaster is online. TheeDeathCaster
Joined: 19 Jun 2011
Total Posts: 1191
30 Jul 2017 01:29 PM
You forgot a parentheses...
Report Abuse
XxGam3rProxX is not online. XxGam3rProxX
Joined: 27 May 2013
Total Posts: 20
30 Jul 2017 01:31 PM
Try this:

script.Parent.Touched:connect(function(plr)
if plr.Parent:FindFirstChild("Humanoid") then
local h = plr.Parent:FindFirstChild("Humanoid")
h.Health.Value = 0
end
end)
Report Abuse
XxBoombotkiller is online. XxBoombotkiller
Joined: 02 Oct 2014
Total Posts: 35
30 Jul 2017 01:33 PM
well im stupid.... thanks dude


Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • 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