Advertisement
Guest User

Untitled

a guest
Nov 21st, 2018
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.23 KB | None | 0 0
  1.  
  2. local check = game:GetService("ReplicatedStorage").gameplay.ball:WaitForChild("check")
  3. function check.OnClientInvoke()
  4. return true
  5. end
  6.  
  7. local Run = game:GetService('RunService');
  8. local UIS = game:GetService('UserInputService');
  9. local Players = game:GetService('Players');
  10. local Player = Players['LocalPlayer'];
  11. local Mouse = Player:GetMouse()
  12.  
  13. local Event = Instance.new('RemoteEvent')
  14. local FireServer = Event.FireServer
  15. local GetRange = Random.new()
  16. _G.Max, _G.Min = 92, 99;
  17. local Aim = true
  18.  
  19. local Meta = getrawmetatable(game);
  20. local MetaIndex = Meta.__index;
  21. local MetaCall = Meta.__namecall;
  22. setreadonly(Meta, false) -- change "setreadonly" to "make_writeable" if you're using protosmasher
  23.  
  24. rawset(Meta, '__namecall', function(Obj, ...)
  25. local Args = {...};
  26. local Method = tostring(table.remove(Args));
  27. local Func = MetaIndex(Obj, Method)
  28.  
  29. if (Func == FireServer) then
  30. if (tostring(Obj) == 'shoot') and Aim then
  31. return FireServer(Obj, Args[1], GetRange:NextInteger(_G.Min, _G.Max) or 100, true)
  32. end
  33. end
  34.  
  35. return MetaCall(Obj, ...)
  36. end)
  37.  
  38. UIS['InputBegan']:Connect(function(input, proc)
  39. if proc then return end
  40. if input.KeyCode == Enum.KeyCode.Q then
  41. Aim = not Aim
  42. end
  43. end)
  44. print("Ready")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement