Like for example, we have this SoundId of a Sound:
sound.SoundId = "rbxassetid://1337"
So I want the script to find the pattern "rbxassetid://" and replace it with "http://www.roblox.com/asset/?id=" using a script without changing the numbers.
So how do I do it?
Hey anphu04,
local string_with_pattern = "rbxassetid://1337"; local pattern = "rbxassetid://"; string_with_pattern = string.gsub(string_with_pattern, pattern, "http://www.roblox.com/asset/?id=");
http://www.roblox.com/asset/?id=1337