| |
|
iDemum
|
  |
| Joined: 17 Jan 2010 |
| Total Posts: 56 |
|
| |
|
plistra
|
  |
| Joined: 12 Mar 2014 |
| Total Posts: 859 |
|
|
| 03 Aug 2014 06:22 PM |
You buy a bunch of stuff online and then build it...
-o wait, on RBLX?
no, u cant, get out scrub |
|
|
| Report Abuse |
|
|
Kodran
|
  |
| Joined: 15 Aug 2013 |
| Total Posts: 5330 |
|
|
| 03 Aug 2014 06:22 PM |
| When they click do a raycast to their lookvector then if the returned part's parent has a humanoid then subtract its health by whatever number. |
|
|
| Report Abuse |
|
|
|
| 03 Aug 2014 06:25 PM |
You can make a gun..
@Kodran I can't script D: |
|
|
| Report Abuse |
|
|
|
| 03 Aug 2014 06:29 PM |
"You can make a gun.."
no, he said YOU can't. |
|
|
| Report Abuse |
|
|
|
| 03 Aug 2014 06:33 PM |
| Forget it, if no one is going to help I will just google it. |
|
|
| Report Abuse |
|
|
plistra
|
  |
| Joined: 12 Mar 2014 |
| Total Posts: 859 |
|
|
| 03 Aug 2014 06:33 PM |
That's not what I meant, but sure, that's what I mean now.
meaning = that meaning = false wait(180) meaning = true |
|
|
| Report Abuse |
|
|
| |
|
Kodran
|
  |
| Joined: 15 Aug 2013 |
| Total Posts: 5330 |
|
|
| 03 Aug 2014 06:34 PM |
okay like
local cam = workspace.CurrentCamera local plr = game.Players.LocalPlayer local mouse = plr:GetMouse()
mouse:GetMouseDown:connect(function() --make like a raycast idk or something and like do like cam.lookVector * whatever for like the direction or something. local part, endpoint = workspace.Actually do the raycast here if part.Parent:FindFirstChild("Humanoid") ~= nil then part.Parent:FindFirstChild("Humanoid").Health = part.Parent:FindFirstChild("Humanoid").Health - 10 end end) |
|
|
| Report Abuse |
|
|
|
| 03 Aug 2014 06:34 PM |
| as if using google will help you make a gun outta no where. Just go to free models and use manofthelol's output-spamming guns. |
|
|
| Report Abuse |
|
|