|
| 21 Dec 2013 01:19 PM |
function onTouch(part) local humanoid = part.Parent:FindFirstChild("Humanoid") if (humanoid ~= nil) then humanoid.Health = 0 end end
script.Parent.Touched:connect(onTouch)
|
|
|
| Report Abuse |
|
|
| |
|
| |
|
|
| 22 Dec 2013 10:11 AM |
Awesome Job! Keep practicing, RBLX Lua is a great first programming lang C: |
|
|
| Report Abuse |
|
|
|
| 22 Dec 2013 10:11 AM |
| Please don't bump this if your problem (if any) was resolved. |
|
|
| Report Abuse |
|
|
domorox17
|
  |
| Joined: 06 Mar 2012 |
| Total Posts: 1710 |
|
|
| 22 Dec 2013 10:48 AM |
| uhhh, isnt this on the wiki? |
|
|
| Report Abuse |
|
|
| |
|
|
| 22 Dec 2013 11:51 AM |
ok now your next lesson is making that into a script that moves the player and puts a message that only they will be able to see |
|
|
| Report Abuse |
|
|
|
| 22 Dec 2013 11:54 AM |
| cmd = Instance.new("Hint", workspace) |
|
|
| Report Abuse |
|
|
smiley599
|
  |
| Joined: 23 Jan 2010 |
| Total Posts: 21869 |
|
|
| 22 Dec 2013 11:56 AM |
aaaaaaaaaaaaaaand
you failed octo |
|
|
| Report Abuse |
|
|
| |
|
|
| 22 Dec 2013 01:01 PM |
function onTouch(part) local humanoid = part.Parent:FindFirstChild("Humanoid") if (humanoid ~= nil) then humanoid.Parent:MoveTo(CFrame.new(0, 0, 0).p) local p = humanoid.Parent:GetPlayerFromCharacter() local msg = Instance.new("Message") msg.Parent = p.PlayerGui msg.Text = "Ya this is the script, keep practicing and learning" end end
script.Parent.Touched:connect(onTouch) |
|
|
| Report Abuse |
|
|