Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local char = game.Players.LocalPlayer.Character
- local rot = char["HumanoidRootPart"]
- local event = game.ReplicatedStorage:FindFirstChild("HamonSword")
- local hum
- local debtime = .25
- local dmg = 60
- local sound
- game:GetService("UserInputService").InputBegan:Connect(function(key,pass)
- key = string.lower(key.KeyCode.Name)
- hum = game.Players.LocalPlayer:GetMouse().Target.Parent:FindFirstChildOfClass("Humanoid")
- local rot = game.Players.LocalPlayer.Character:FindFirstChild("HumanoidRootPart")
- if key == "f" and not pass and hum and rot then
- local bodyfdire = rot.CFrame.LookVector*80
- --for i = 1,20 do
- if event then
- event:FireServer(hum, dmg, debtime, bodyfdire, sound)
- end
- --end
- end
- end)
Add Comment
Please, Sign In to add comment