How can you possibly detect this script from the client side?
local hook: (any);
local Player = game:GetService("Players").LocalPlayer;
local hook2;
local Current: number = workspace.Gravity;
local hook3;
local Humanoid: Humanoid = Player.Character:FindFirstChildWhichIsA("Humanoid");
local Speed: number = Humanoid.WalkSpeed
local JumpPower: number = Humanoid.JumpPower;
local JumpHeight: number = Humanoid.JumpHeight;
local Script: LocalScript;
local u10 = { " \204\180\205\129\205\146\204\142\205\140\204\147\204\189\205\152\205\134\204\132\205\139\205\140\204\131\204\138\204\137\204\189\205\139\204\135\205\128\205\140\205\144\205\129\204\140\204\138\205\139\205\142\205\148\204\150\204\179\205\149\204\178\204\185", " \204\182\204\131\204\190\205\140\204\145\204\135\205\160\205\140\204\190\205\132\205\154\204\174\204\160\204\169", " \204\180\205\131\205\152\205\145\204\170\205\133\204\186\205\156\204\179\204\186\204\171\205\150\204\164\205\137" }
for Index: number, Value: Instance in getnilinstances() do
if Value.ClassName == "LocalScript" then
local Name = tostring(Value);
if table.find(u10, Name) then
Script = Value;
break;
end;
end;
end;
hook = hookmetamethod(game, "__index", newcclosure(function(Self: Object, Index: string) : any | number
local Calling: LuaSourceContainer = getcallingscript();
if Calling == Script then
if Self == workspace and Index == "Gravity" then
return Current;
elseif Self == Humanoid and Index == "WalkSpeed" then
return Speed;
elseif Self == Humanoid and Index == "JumpPower" then
return JumpPower;
elseif Self == Humanoid and Index == "JumpHeight" then
return JumpHeight;
end;
end;
return hook(Self, Index);
end));
--[[hook2 = hookmetamethod(game, "__newindex", newcclosure(function(Self, Index, Value)
if not checkcaller() and Self.ClassName == "LocalScript" and Index == "Name" and Self == Script then
return;
end;
return hook2(Self, Index, Value);
end))]]
hook3 = hookmetamethod(game, "__namecall", newcclosure(function(Self: Object, ...) : any | boolean
local Calling: LuaSourceContainer = getcallingscript();
local Method: string = getnamecallmethod();
local Args: {any} = {...};
if Calling == Script then
if Method == "IsA" and Args[1] == "BodyMover" or Args[1] == "LinearVelocity" or Args[1] == "AngularVelocity" or Args[1] == "VectorForce" or Args[1] == "BodyMover" then
return false;
end;
end;
return hook3(Self, ...);
end));