|
| 15 Nov 2014 10:07 AM |
function onClick local humanoid = part.Parent:FindFirstChild("Humanoid") if (humanoid ~= nil) then humanoid.Health = 0 end end
script.Parent.Touched:connect(onClick)
On click of the develpor product it should kill you and bring you to the next stage.. |
|
|
| Report Abuse |
|
|
|
| 15 Nov 2014 10:12 AM |
function onClick(part) local humanoid = part.Parent:FindFirstChild("Humanoid") if (humanoid ~= nil) then humanoid.Health = 0 end end
script.Parent.ClickDetector.MouseButton1Click:connect(onClick)
make sure the scroit's parent also has a ClickDetector in it. |
|
|
| Report Abuse |
|
|
|
| 15 Nov 2014 10:19 AM |
| Sorry, Instead of MouseButton1Click, put MouseClick. I was living in the older ages of roblox for a minute. |
|
|
| Report Abuse |
|
|