Advertisement
plytalent

New damage fuction for star glitcher with gun from death gun

Feb 23rd, 2019
235
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.02 KB | None | 0 0
  1. local typegunattack = 1
  2. local typegun = "damage"
  3. function changetpyegunattack()
  4. if typegunattack == 5 then
  5. typegunattack =1
  6. else
  7. typegunattack = typegunattack + 1
  8. end
  9. changeatttackguntype(typegunattack)
  10. end
  11. function changeatttackguntype(typegunattacknumber)
  12. if typegunattacknumber == 1 then
  13. typegun = "damage"
  14. elseif typegunattacknumber == 2 then
  15. typegun = "heal"
  16. elseif typegunattacknumber == 3 then
  17. typegun = "instant"
  18. elseif typegunattacknumber == 4 then
  19. typegun = "banish"
  20. elseif typegunattacknumber == 5 then
  21. typegun = "reload"
  22. end
  23. end
  24. function damage(dude)
  25. if typegun == "damage" then
  26. dude:FindFirstChildOfClass("Humanoid").Health = 0
  27. elseif typegun == "heal" then
  28. local hithum = dude:FindFirstChildOfClass("Humanoid")
  29. hithum.Health = hithum.MaxHealth
  30. elseif typegun == "instant" then
  31. dude.Parent = nil
  32. elseif type == "banish" then
  33. dude.Parent = nil
  34. --Banish(dude.name)
  35. elseif typegun == "reload" then
  36. local hitname = dude.name
  37. game:GetService("Players"):FindFristChild(dude.name):LoadCharater()
  38. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement