Help with ID here

So i need to make it so the ID i put here makes the decal appear on that side image

but i don’t have a clue of how i could do it, already tried searching for some tutorials, but nothing i could really use to this case here.

when the text box is typed in, the Textbox.Text should change. take the textbox.text and set the imagelabel.image (or whatever it is) to that text.

1 Like

alright i got a script working:

	script.Parent.FocusLost:Connect(function() -- detects when text box isn't being typed anymore
		local text = script.Parent.Text -- change this to wherever your textbox is
		script.Parent.Parent.ImageLabel.Image = ("rbxassetid://"..text) -- change this to wherever your imagelabel is
		end)

@LaasanhaEnjoyer

1 Like

Why did you put this in the loop?!

didn’t test it without the loop, the script was different at first but yeah the loop is unnecessary :person_shrugging:

Yeah that’s very bad idea putting this in the loop, it will cause memory leak. .FocusLost is totally enough.

heyo sorry i didn’t reply earlier, so i put the script in the text box and it “kind of worked”, but when i put the decal ID on the text box, the image ust disapears:

This is because the content id on the website and the actual content id are different. Unfortunately I don’t know how to get the actual id from the website one.

use RbxThumb instead

script.Parent.Parent.ImageLabel.Image = "rbxthumb://type=Asset&id="..text.."&w=150&h=150"
2 Likes

said this in the output:

oh mb i made a lil error its fixed now try again

1 Like

YESSSSSS it’s working!!!
thx bro!

1 Like

oh really? didn’t knew that was a thing

Np :D, mark that as a solution so other ppl can see.

1 Like

uhh you marked the solution to someone else but thats fine lol.