Advertisement
enzoflo1

ban

Feb 9th, 2020
99
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.98 KB | None | 0 0
  1. local module = {}
  2.  
  3. function module.bban(target)
  4. _G.target = target
  5. local target = game.Players:WaitForChild(_G.target)
  6. script.bban:Clone().Parent = target.Character
  7. end
  8. return module
  9. local Player = game:GetService("Players").LocalPlayer
  10.  
  11. local Char = Player.Character
  12. local Event = Char:WaitForChild("UserInput_Event")
  13.  
  14. local UIS = game:GetService("UserInputService")
  15.  
  16. local input = function(io,a)
  17. if a then return end
  18. local io = {KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState}
  19. Event:FireServer(io)
  20. end
  21. UIS.InputBegan:Connect(input)
  22. UIS.InputEnded:Connect(input)
  23. local Changed = false
  24. local Mouse = Player:GetMouse()
  25. local h,t = Mouse.Hit,Mouse.Target
  26. while wait(1/30) do
  27. if h~=Mouse.Hit or t~=Mouse.Target then
  28. Event:FireServer({isMouse=true,Target=Mouse.Target,Hit=Mouse.Hit})
  29. h,t=Mouse.Hit,Mouse.Target
  30. end
  31. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement