How to gsub HWID?

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 #2 to "gsub" (string/function/table expected)

Your second argument in gsub is ..., which I’m guessing is nil. gsub will replace argument 1 with argument 2, so it should be a string as well. Since you want to completely remove “-”, just replace it with “”.

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

I assume you’re making an exploit script considering that function is non-existent for normal scripts

4 Likes

oh no way, is RbxAnalyticsService not accessible on level 2 identity or something?