I need help with billboardgui custom decal id not working

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)
1 Like

it doesn’t throw any error at all, and the problem is that the image value is “http://www.roblox.com/asset/?id=Decal ID Here” every time a person submits their decal

Did you try using pcall yet to test for errors?

i did use pcall, but it worked perfectly

Did you try "rbxthumb://type=Asset&id="?

Pass the text through the event and grab it from the server.

1 Like

i did but it’s still the exact same problem without any errors in the output

Try @Awo_kein’s method and see if anything happens.

thanks for the help, it worked and you saved me on making my game

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.