code example so not request:
local format = "%x"
local formatted = string.format(format, "7846242414") -- fake assetID btw
code example so not request:
local format = "%x"
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:
local Format = "%#x" -- turns the hex (%x) into a readable roblox format by making x = #x
local Formatted = string.format(Format, "152745539")
local AssetID = "rbxassetid://" .. Formatted
local Sound = Instance.new("Sound")
Sound.Playing = true
Sound.Looped = true
Sound.SoundId = AssetID
Sound.Parent = workspace
This discussion is preserved as it was. New answers, comments, and votes are closed.
2 comments
I'll test this now, thanks.
worked, thanks again.