so i’m working on custom flags in one of my game, in which you have to enter a custom decal id from the roblox creator marketplace decals section, but the problem is, the image id is always “Decal ID Here” which is the main text of the textbox before a player modifies it instead of a modified version with new text when the remoteevent is fired
any help is appreciated
localscript for firing remoteevent
script.Parent.MouseButton1Click:Connect(function()
game.ReplicatedStorage.ChangeCustomFlag:FireServer()
end)
remotehandler code block for modifying billboardgui image id to the textbox text
game.ReplicatedStorage.ChangeCustomFlag.OnServerEvent:Connect(function(player)
local char = player.Character
local billboardgui = char.Head.BillboardGui
billboardgui.ImageLabel.Image = "http://www.roblox.com/asset/?id="..player.PlayerGui.Settings.CustomFlag.TextBox.Text
end)