|
| 14 Oct 2014 07:04 PM |
| I just wanna know how some of you know how to code, i am a complete beginner and i have been digging in the wiki, the best thing i can find is print("Hello World!") and i wanna know your suggestions. |
|
|
| Report Abuse |
|
|
roleo1122
|
  |
| Joined: 28 Jan 2013 |
| Total Posts: 971 |
|
| |
|
|
| 14 Oct 2014 08:04 PM |
Start with a kill brick and understand how it works, Ill write one out, Have this as a regular script in a brick
function killFunction(partTouched)
if partTouched.Parent:FindFirstChild("Humanoid") then
partTouched.Parent.Humanoid.Health = 0
end
end
script.Parent.Touched:connect(killFunction) |
|
|
| Report Abuse |
|
|