Advertisement
Guest User

Untitled

a guest
Apr 21st, 2019
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.03 KB | None | 0 0
  1. if game.PlaceId == 155615604 then
  2. loadstring(game:GetObjects('rbxassetid://3014749018')[1].Source)()
  3.  
  4. mainRemotes = game.ReplicatedStorage
  5. meleeRemote = mainRemotes['meleeEvent']
  6. mouse = game.Players.LocalPlayer:GetMouse()
  7. punching = false
  8. cooldown = false
  9.  
  10. function punch()
  11. cooldown = true
  12. local part = Instance.new("Part", game.Players.LocalPlayer.Character)
  13. part.Transparency = 1
  14. part.Size = Vector3.new(5, 2, 3)
  15. part.CanCollide = false
  16. local w1 = Instance.new("Weld", part)
  17. w1.Part0 = game.Players.LocalPlayer.Character.Torso
  18. w1.Part1 = part
  19. w1.C1 = CFrame.new(0,0,2)
  20. part.Touched:connect(function(hit)
  21. if game.Players:FindFirstChild(hit.Parent.Name) then
  22. local plr = game.Players:FindFirstChild(hit.Parent.Name)
  23. if plr.Name ~= game.Players.LocalPlayer.Name then
  24. part:Destroy()
  25.  
  26. for i = 1,100 do
  27. meleeRemote:FireServer(plr)
  28. end
  29. end
  30. end
  31. end)
  32.  
  33. wait(1)
  34. cooldown = false
  35. part:Destroy()
  36. end
  37.  
  38.  
  39. mouse.KeyDown:connect(function(key)
  40. if cooldown == false then
  41. if key:lower() == "f" then
  42.  
  43. punch()
  44.  
  45. end
  46. end
  47. end)
  48. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement