7GrandDadPGN/VapeV4ForRoblox

Suggestion (nofall)

Closed this issue · 2 comments

Change the no-fall method from a constant repetitive remote spam to a hookmetamethod.
Example:

local event = game:GetService("ReplicatedStorage").rbxts_include.node_modules:FindFirstChild("@rbxts").net.out._NetManaged.GroundHit
local namecall

namecall = hookmetamethod(game,"__namecall",function(self, ...)
    local args = {...}
    local method = getnamecallmethod():lower()
    if not checkcaller() and self == event and method == "fireserver" then
        table.clear(args)
        return namecall(self, unpack(args))
    end
    return namecall(self, ...)
end)

technically I only need to do nofall on respawn, that will be accomplished in the rewrite, and no that's not how the nofall works.

Seems to work fine,
It's definitely better then spamming a remote.