|
| 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 |
|
|
|
| 30 Jul 2017 01:21 PM |
| Post the code to your script |
|
|
| Report Abuse |
|
|
|
| 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 |
|
|
|
| 30 Jul 2017 01:29 PM |
| You forgot a parentheses... |
|
|
| Report Abuse |
|
|
|
| 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 |
|
|
|
| 30 Jul 2017 01:33 PM |
well im stupid.... thanks dude
|
|
|
| Report Abuse |
|
|