hookfunction() in 115 seconds

Поделиться
HTML-код
  • Опубликовано: 22 янв 2025

Комментарии • 31

  • @devfx
    @devfx  2 года назад +5

    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

  • @user-et1up1nk9k
    @user-et1up1nk9k 3 года назад +3

    wow you are the best youtuber

  • @kozzek7287
    @kozzek7287 3 года назад +4

    bro pls make make videos like these

  • @grinicide
    @grinicide 2 года назад +1

    can you do this with remote functions?

    • @devfx
      @devfx  2 года назад

      what

    • @grinicide
      @grinicide 2 года назад

      @@devfx like a remote function with a table as an argument

    • @devfx
      @devfx  2 года назад

      ​@@grinicidetry to use hookmetamethod and change the argument when the remotefunction fires

    • @grinicide
      @grinicide 2 года назад

      @@devfx Im just not sure how to change the table values inside

    • @devfx
      @devfx  2 года назад

      ​@@grinicide table[1] = "k34iogju34jgu34g"

  • @BennettEU
    @BennettEU 2 года назад

    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

    • @devfx
      @devfx  2 года назад +2

      getgc() contains all functions, go find the function using upvalues/constants in the function 😂😂😂😂😂😂😂😂😂😂

    • @BennettEU
      @BennettEU 2 года назад

      @@devfx ty

    • @privatefield.
      @privatefield. Год назад

      @@devfx
      getconnections: am i a joke for you?

  • @jirawatphuden4198
    @jirawatphuden4198 3 года назад +1

    where link description?

    • @devfx
      @devfx  3 года назад

      devforum.roblox.com/t/how-to-use-ellipsis-as-parameters/889939

  • @lloytottri1654
    @lloytottri1654 2 года назад

    Yo bro how do I reference a local script with weird texts as it's name?

    • @devfx
      @devfx  2 года назад

      local script = game.ReplicatedStorage.Modules["921!!?!##$!"]

    • @lloytottri1654
      @lloytottri1654 2 года назад +1

      @@devfx will this also work?
      local script = game:GetService("Players").TestAccount123.PlayerScripts["9272Ã"]

    • @devfx
      @devfx  2 года назад +1

      @@lloytottri1654 yes

  • @blob6507
    @blob6507 Год назад

    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?

    • @devfx
      @devfx  Год назад

      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

    • @blob6507
      @blob6507 Год назад

      @@devfx wow ok, thanks.

    • @blob6507
      @blob6507 Год назад

      @@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?

    • @devfx
      @devfx  Год назад

      ​ @blob6507 Here's a good video: ruclips.net/video/sAjmwhmGgeU/видео.html

  • @freedom-bn9gx
    @freedom-bn9gx 2 года назад

    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

    • @devfx
      @devfx  2 года назад +2

      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

    • @hydraaff7409
      @hydraaff7409 Год назад

      @@devfx what mean checkcaller() function ?

    • @devfx
      @devfx  Год назад

      @@hydraaff7409 true if your exploit called the function

    • @hydraaff7409
      @hydraaff7409 Год назад

      @@devfx thx

  • @Rblx-tools
    @Rblx-tools 2 года назад

    please spanish