Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local typegunattack = 1
- local typegun = "damage"
- function changetpyegunattack()
- if typegunattack == 5 then
- typegunattack =1
- else
- typegunattack = typegunattack + 1
- end
- changeatttackguntype(typegunattack)
- end
- function changeatttackguntype(typegunattacknumber)
- if typegunattacknumber == 1 then
- typegun = "damage"
- elseif typegunattacknumber == 2 then
- typegun = "heal"
- elseif typegunattacknumber == 3 then
- typegun = "instant"
- elseif typegunattacknumber == 4 then
- typegun = "banish"
- elseif typegunattacknumber == 5 then
- typegun = "reload"
- end
- end
- function damage(dude)
- if typegun == "damage" then
- dude:FindFirstChildOfClass("Humanoid").Health = 0
- elseif typegun == "heal" then
- local hithum = dude:FindFirstChildOfClass("Humanoid")
- hithum.Health = hithum.MaxHealth
- elseif typegun == "instant" then
- dude.Parent = nil
- elseif type == "banish" then
- dude.Parent = nil
- --Banish(dude.name)
- elseif typegun == "reload" then
- local hitname = dude.name
- game:GetService("Players"):FindFristChild(dude.name):LoadCharater()
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement