centero
|
  |
| Joined: 17 Apr 2012 |
| Total Posts: 35 |
|
|
| 06 Feb 2014 07:58 AM |
debounce = 0
function equipped(mouse) function Shoot() if debounce == 0 then debounce = 1 if mouse.Target ~= nil then if mouse.Target.Parent:findFirstChild("Humanoid") ~= nil and mouse.Target.Name ~= "Head" then mouse.Target.Parent.Humanoid:TakeDamage(10) elseif mouse.Target.Parent.Parent:findFirstChild("Humanoid") ~= nil then mouse.Target.Parent.Parent.Humanoid:TakeDamage(20) elseif mouse.Target.Name == "Head" then mouse.Target.Parent.Humanoid:TakeDamage(20) end end script.Parent.Hole.Flash.Enabled = true script.Parent.GripUp = Vector3.new(0,1,-0.1) wait(0.1) script.Parent.Hole.Flash.Enabled = false script.Parent.GripUp = Vector3.new(0,1,0) wait(0.9) debounce = 0 end end mouse.Button1Down:connect(Shoot) end
script.Parent.Equipped:connect(equipped)
Help me edit this script to make it Non-Team-Killable, The team's name is blue |
|
|
| Report Abuse |
|
|
|
| 06 Feb 2014 08:06 AM |
debounce = 0
function equipped(mouse) function Shoot() if debounce == 0 then debounce = 1 if mouse.Target ~= nil and then if mouse.Target.Parent:findFirstChild("Humanoid") ~= nil and mouse.Target.Name ~= "Head" and mouse.Target.Torso.BrickColor~=BrickColor.new(game:GetService("TeamService"):findFirstChild("blue").TeamColor then mouse.Target.Parent.Humanoid:TakeDamage(10) elseif mouse.Target.Parent.Parent:findFirstChild("Humanoid") ~= nil then mouse.Target.Parent.Parent.Humanoid:TakeDamage(20) elseif mouse.Target.Name == "Head" and mouse.Target.Torso.BrickColor~=BrickColor.new(game:GetService("TeamService"):findFirstChild("blue").TeamColor then mouse.Target.Parent.Humanoid:TakeDamage(20) end end script.Parent.Hole.Flash.Enabled = true script.Parent.GripUp = Vector3.new(0,1,-0.1) wait(0.1) script.Parent.Hole.Flash.Enabled = false script.Parent.GripUp = Vector3.new(0,1,0) wait(0.9) debounce = 0 end end mouse.Button1Down:connect(Shoot) end
script.Parent.Equipped:connect(equipped)
Help me edit this script to make it Non-Team-Killable, The team's name is blue |
|
|
| Report Abuse |
|
|
|
| 06 Feb 2014 08:07 AM |
| I dislike people pulling random stuff from free models then expect us to fix it up for you. |
|
|
| Report Abuse |
|
|
|
| 06 Feb 2014 08:09 AM |
| @Gran Me too, but I can't tell if it's free model unless someone tells me, or I have used it before. (I only used Free Models when. Was a noob) |
|
|
| Report Abuse |
|
|
centero
|
  |
| Joined: 17 Apr 2012 |
| Total Posts: 35 |
|
|
| 06 Feb 2014 08:52 AM |
Yo, I made this with some help. I didn't take some free gun model, Plus you can tell it's simple |
|
|
| Report Abuse |
|
|
|
| 06 Feb 2014 08:54 AM |
| Yeah it is, still i doubt you had any hand in it. |
|
|
| Report Abuse |
|
|