Categories > Coding > Lua >

How to gsub HWID?

Posts: 20

Threads: 13

Joined: Jun, 2023

Reputation: 0

Posted

I'm tryin to remove "-" from HWID or what is it...

local str = tostring(game:GetService("RbxAnalyticsService"):GetClientId())

print(str:gsub("%-%-", ...))

But i got error and i don't know how to fix it - tostring don't work.

Missing argument #3 to "gsub" (string/function/table expected)
  • 0

Posts: 17

Threads: 1

Joined: Sep, 2022

Reputation: 5

Replied

local guid = game:GetService("RbxAnalyticsService"):GetClientId()
print(guid:gsub("-", ""))
  • 0

Posts: 165

Threads: 22

Joined: Jun, 2023

Reputation: 5

Replied

The error message you’re getting indicates that you’re missing the third argument to the gsub function, which should be the replacement string, function or table.

In your case, if you want to remove all occurrences of "-" from the str variable, you can use the following code:

local str = tostring(game:GetService("RbxAnalyticsService"):GetClientId())
local newStr = str:gsub("%-", "")
print(newStr)

This should replace all occurrences of "-" in str with an empty string "", effectively removing them.

  • 0

https://cdn.discordapp.com/attachments/968557692639666267/1139574673630318632/lodlk.png

https://cdn.discordapp.com/attachments/921008361342902274/1144217307170742363/Bez_tytuu692.png

Posts: 1227

Threads: 68

Joined: May, 2022

Reputation: 17

Replied

dont use :GetClientId() to get hwid theres apis such as https://httpbin.org/get that return all headers from requests and most exploits like fluxus synapse etc.. have a header with the real hwid

Comments

Whoman 17 Reputation

Commented

@Astronemi yes but Im pretty sure :GetClientId() will change every update so its not very reliable, just get the real hwid

  • 0

  • 0

Did I mention I use arch btw?

Users viewing this thread:

( Members: 0, Guests: 1, Total: 1 )