Advertisement
asgargg

stealth

Jun 24th, 2019
629
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.88 KB | None | 0 0
  1. local uis = game:GetService("UserInputService")
  2. local renderstepped = game:GetService("RunService").RenderStepped
  3. local mouse = game.Players.LocalPlayer:GetMouse()
  4.  
  5. -- function Mod()
  6. -- local oldw; oldw = hookfunction(getrenv().wait, function(...)
  7. -- if getfenv(2).script.Parent.Parent:IsA("Tool") then
  8. -- return
  9. -- end
  10. -- return oldw(...)
  11. -- end)
  12. -- end
  13.  
  14. uis.InputBegan:Connect(function(input)
  15. if input.UserInputType == Enum.UserInputType.MouseButton1 then
  16. Hold = true
  17. end
  18. end)
  19.  
  20. uis.InputEnded:Connect(function(input)
  21. if input.UserInputType == Enum.UserInputType.MouseButton1 then
  22. Hold = false
  23. end
  24. end)
  25.  
  26. renderstepped:Connect(function()
  27. local tool = game.Players.LocalPlayer.Character:FindFirstChildOfClass("Tool")
  28. if Hold and tool and tool.Name:find("Crossbow") then
  29. tool.Remotes.Shoot:FireServer(tool.Handle.Position, mouse.Hit.p)
  30. end
  31. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement