Categories > Coding > Lua >
How to gsub HWID?
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)
Cancel
Post
Replied
local guid = game:GetService("RbxAnalyticsService"):GetClientId()
print(guid:gsub("-", ""))
Cancel
Post
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.
Cancel
Post
https://cdn.discordapp.com/attachments/968557692639666267/1139574673630318632/lodlk.png
https://cdn.discordapp.com/attachments/921008361342902274/1144217307170742363/Bez_tytuu692.png
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
Cancel
Post
Did I mention I use arch btw?
Users viewing this thread:
( Members: 0, Guests: 1, Total: 1 )
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