Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- getfenv()["vDsKMjogPC3Wdu5s"]=function(k) local Players=game:GetService("Players")
- local Player=Players.LocalPlayer
- local Backpack=Player.Backpack
- local Server=Backpack:FindFirstChild("ServerTraits")
- local Input=game:GetService("UserInputService")
- local function Distance(a,b)
- local distance = (a-b).magnitude
- return distance or nil
- end
- local function GetClosestPlayer(range)
- for _,__ in pairs(Players:GetPlayers()) do
- if __~=Player then
- if __.Character then
- local targetRoot=__.Character:FindFirstChild("HumanoidRootPart")
- if targetRoot then
- if Distance(targetRoot.Position,Player.Character.HumanoidRootPart.Position)<=range then
- return __
- end
- end
- end
- end
- end
- end
- local function GetWeapon()
- for _,__ in pairs(Player.Character:GetChildren()) do
- if __:IsA("Tool") then
- return __
- end
- end
- end
- Input.InputBegan:connect(function(input, busy)
- if not busy then
- local Key = input.KeyCode
- if Key == Enum.KeyCode.Q then
- local w=GetWeapon()
- if tostring(w)=="Punch" then
- for _,__ in pairs(w:GetChildren()) do
- if __:IsA("AnimationTrack") then
- __:Destroy()
- end
- end
- end
- if w and not Player.Character:FindFirstChild("KO") then
- if Player.Backpack.ServerTraits.Stann.Value > 10 then
- Player.Backpack.ServerTraits.Touch1:FireServer(w,Player.Character.RightHand,true,true)
- end
- end
- end
- end
- end) return #k end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement