Should be: args = {...} if more than one argument is passed to the function. Using args = ... works in the example but only gives you the first argument. Please don't follow that
Hey, nice tuto. I'm trying to find the way to make this work : local hook = require(game:GetService("ReplicatedStorage").PlayerValues) hook.hookfunction(v6.GetGainFactor, function(p21) local gainFactor = v2.Shops.Rebirth[p21.EquippedRebirth].GetGainFactor if p21.Unlocked["X2 Thickness"] then gainFactor = gainFactor * 10
else gainFactor = gainFactor * 10 end return gainFactor end) It is supposed to give x10 Thickness boost to the player but for some reason it's not working, any idea?
docs.synapse.to/development/function_hooks.html -"hook" must be a function, -your hookfunction() use is wrong, -v2, v6, and p21 are fake names given to variables by the decompiler and you cannot reference them
@@devfx i see... So how are we supposed to change the values inside a fonction? I'm trying to change the value of the fake variable "v28" function v6.GetGainFactor(p21) if p21.Unlocked["2X Thickness"] then local v28 = 2; else v28 = 1; end; return v28 * v2.Shops.Rebirth[p21.EquippedRebirth].GainFactor; end; Do you see any way to make v28 return something like 10?
yo ive been testing my knowledge a little but i got completely stuck when i tried blocking a remote event, any advice? idk if u can hook events this is the current code and it isnt working, if i had to guess im getting the arguements and parameters wrong local mt = getrawmetatable(game) setreadonly(mt, false) local old = mt.__index mt.__index = function(instance,index) if instance = "FireServer" and index = "remotehere" then return end return old(instance, index) end
local old; old = hookmetamethod(game, "__namecall", function(self, ...) if not checkcaller() and self.Name == "nameofremote" and getnamecallmethod() == "FireServer" then return end return old(self, ...) end) x.synapse.to/docs/development/metamethod_hook_examples.html#metamethod-hook-examples
Should be: args = {...} if more than one argument is passed to the function.
Using args = ... works in the example but only gives you the first argument. Please don't follow that
wow you are the best youtuber
bro pls make make videos like these
can you do this with remote functions?
what
@@devfx like a remote function with a table as an argument
@@grinicidetry to use hookmetamethod and change the argument when the remotefunction fires
@@devfx Im just not sure how to change the table values inside
@@grinicide table[1] = "k34iogju34jgu34g"
How do i hook a function that is connected? for example button.Mouse1Pressed:Connect(function() how would i hook this as it doesnt have a name
getgc() contains all functions, go find the function using upvalues/constants in the function 😂😂😂😂😂😂😂😂😂😂
@@devfx ty
@@devfx
getconnections: am i a joke for you?
where link description?
devforum.roblox.com/t/how-to-use-ellipsis-as-parameters/889939
Yo bro how do I reference a local script with weird texts as it's name?
local script = game.ReplicatedStorage.Modules["921!!?!##$!"]
@@devfx will this also work?
local script = game:GetService("Players").TestAccount123.PlayerScripts["9272Ã"]
@@lloytottri1654 yes
Hey, nice tuto.
I'm trying to find the way to make this work :
local hook = require(game:GetService("ReplicatedStorage").PlayerValues)
hook.hookfunction(v6.GetGainFactor, function(p21)
local gainFactor = v2.Shops.Rebirth[p21.EquippedRebirth].GetGainFactor
if p21.Unlocked["X2 Thickness"] then
gainFactor = gainFactor * 10
else
gainFactor = gainFactor * 10
end
return gainFactor
end)
It is supposed to give x10 Thickness boost to the player but for some reason it's not working, any idea?
docs.synapse.to/development/function_hooks.html
-"hook" must be a function,
-your hookfunction() use is wrong,
-v2, v6, and p21 are fake names given to variables by the decompiler and you cannot reference them
@@devfx wow ok, thanks.
@@devfx
i see... So how are we supposed to change the values inside a fonction?
I'm trying to change the value of the fake variable "v28"
function v6.GetGainFactor(p21)
if p21.Unlocked["2X Thickness"] then
local v28 = 2;
else
v28 = 1;
end;
return v28 * v2.Shops.Rebirth[p21.EquippedRebirth].GainFactor;
end;
Do you see any way to make v28 return something like 10?
@blob6507 Here's a good video: ruclips.net/video/sAjmwhmGgeU/видео.html
yo ive been testing my knowledge a little but i got completely stuck when i tried blocking a remote event, any advice? idk if u can hook events
this is the current code and it isnt working, if i had to guess im getting the arguements and parameters wrong
local mt = getrawmetatable(game)
setreadonly(mt, false)
local old = mt.__index
mt.__index = function(instance,index)
if instance = "FireServer" and index = "remotehere" then
return
end
return old(instance, index)
end
local old;
old = hookmetamethod(game, "__namecall", function(self, ...)
if not checkcaller() and self.Name == "nameofremote" and getnamecallmethod() == "FireServer" then
return
end
return old(self, ...)
end)
x.synapse.to/docs/development/metamethod_hook_examples.html#metamethod-hook-examples
@@devfx what mean checkcaller() function ?
@@hydraaff7409 true if your exploit called the function
@@devfx thx
please spanish