Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local plr = game.Players.LocalPlayer;
- local mouse = plr:GetMouse();
- local hackson = true;
- mouse.KeyDown:connect(function(key)
- if key == "q" then
- hackson = not hackson;
- end
- end)
- local metatable = assert(getrawmetatable, "needs access to function 'getrawmetatable'")(game)
- local fireserver = Instance.new("RemoteEvent").FireServer;
- local __namecall = __namecall or metatable.__namecall
- local __index = __index or metatable.__index
- if setreadonly then
- setreadonly(metatable, false)
- elseif make_writeable then
- make_writeable(metatable)
- end
- function metatable:__namecall(...)
- local args = {...}
- local remote = self
- local method = table.remove(args)
- if method == "FireServer" and self.Name == "shoot" and hackson then
- args[2] = math.random(90, 100) + math.random()
- args[3] = true;
- fireserver(self, unpack(args))
- return;
- end
- return __namecall(self, ...)
- end
Advertisement
Add Comment
Please, Sign In to add comment