Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 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(50)
- elseif mouse.Target.Parent.Parent:findFirstChild("Humanoid") ~= nil then
- mouse.Target.Parent.Parent.Humanoid:TakeDamage(100)
- elseif mouse.Target.Name == "Head" then
- mouse.Target.Parent.Humanoid:TakeDamage(100)
- 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)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement