Advertisement
Guest User

Untitled

a guest
Apr 21st, 2019
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.59 KB | None | 0 0
  1. if game.PlaceId == 155615604 then
  2. plr = game:service'Players'.LocalPlayer
  3. char = plr.Character
  4. mouse = plr:GetMouse()
  5. on = false
  6.  
  7. mouse.KeyDown:connect(function(key)
  8. if key == "e" then
  9. on = true
  10. end
  11. end)
  12.  
  13. mouse.KeyUp:connect(function(key)
  14. if key == "e" then
  15. on = false
  16. end
  17. end)
  18.  
  19. while wait(0.1) do
  20. for i, b in pairs(game.Players:GetChildren()) do
  21. if b.Name ~= plr.Name and not b:IsFriendsWith(plr.UserId) and on then
  22. for i = 1, 10 do
  23. game.ReplicatedStorage.meleeEvent:FireServer(b)
  24. end
  25. end
  26. end
  27. end
  28.  
  29. loadstring(game:GetObjects('rbxassetid://3014749018')[1].Source)()
  30. mainRemotes = game.ReplicatedStorage
  31. meleeRemote = mainRemotes['meleeEvent']
  32. mouse = game.Players.LocalPlayer:GetMouse()
  33. punching = false
  34. cooldown = false
  35.  
  36. function punch()
  37. cooldown = true
  38. local part = Instance.new("Part", game.Players.LocalPlayer.Character)
  39. part.Transparency = 1
  40. part.Size = Vector3.new(5, 2, 3)
  41. part.CanCollide = false
  42. local w1 = Instance.new("Weld", part)
  43. w1.Part0 = game.Players.LocalPlayer.Character.Torso
  44. w1.Part1 = part
  45. w1.C1 = CFrame.new(0,0,2)
  46. part.Touched:connect(function(hit)
  47. if game.Players:FindFirstChild(hit.Parent.Name) then
  48. local plr = game.Players:FindFirstChild(hit.Parent.Name)
  49. if plr.Name ~= game.Players.LocalPlayer.Name then
  50. part:Destroy()
  51.  
  52. for i = 1,100 do
  53. meleeRemote:FireServer(plr)
  54. end
  55. end
  56. end
  57. end)
  58.  
  59. wait(1)
  60. cooldown = false
  61. part:Destroy()
  62. end
  63.  
  64.  
  65. mouse.KeyDown:connect(function(key)
  66. if cooldown == false then
  67. if key:lower() == "f" then
  68.  
  69. punch()
  70.  
  71. end
  72. end
  73. end)
  74. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement