FragRage21

Untitled

May 20th, 2020
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.77 KB | None | 0 0
  1. local char = game.Players.LocalPlayer.Character
  2. local rot = char["HumanoidRootPart"]
  3. local event = game.ReplicatedStorage:FindFirstChild("HamonSword")
  4. local hum
  5. local debtime = .25
  6. local dmg = 60
  7. local sound
  8. game:GetService("UserInputService").InputBegan:Connect(function(key,pass)
  9. key = string.lower(key.KeyCode.Name)
  10. hum = game.Players.LocalPlayer:GetMouse().Target.Parent:FindFirstChildOfClass("Humanoid")
  11. local rot = game.Players.LocalPlayer.Character:FindFirstChild("HumanoidRootPart")
  12. if key == "f" and not pass and hum and rot then
  13. local bodyfdire = rot.CFrame.LookVector*80
  14. --for i = 1,20 do
  15. if event then
  16. event:FireServer(hum, dmg, debtime, bodyfdire, sound)
  17. end
  18. --end
  19. end
  20. end)
Add Comment
Please, Sign In to add comment