code example so not request:
1 | local format = "%x" |
2 | local formatted = string.format(format, "7846242414" ) -- fake assetID btw |
Hey, this is pretty easy to do, all you need to do add is the "#" to the x.
This makes the formatting readable, for example you can do this on an audio assetID:
1 | local Format = "%#x" -- turns the hex (%x) into a readable roblox format by making x = #x |
2 | local Formatted = string.format(Format, "152745539" ) |
3 | local AssetID = "rbxassetid://" .. Formatted |
4 |
5 | local Sound = Instance.new( "Sound" ) |
6 | Sound.Playing = true |
7 | Sound.Looped = true |
8 | Sound.SoundId = AssetID |
9 | Sound.Parent = workspace |