Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
-1

How to make decal change when you input a number into gui?

Asked by 4 years ago
Edited 4 years ago

I am trying to make a meeting room where you can type a roblox decal's id into it then it will change the screen to that decal. Sort of like the paintings in Bloxburg.

I have set up the decal on a part (In workspace) and in the starter GUI I have added a simple GUI with the text box.

I was thinking that you could save the input as a variable and then add the variable onto the starting part of the URL (https://www.roblox.com/library/ + Input from text box) so that you would have the complete URL to change the decal image. So far I was testing to see if I could print the input (the following is what I have) however, it hasn't been working.

local TextBox = script.Parent

while true do
    local textBoxInput = TextBox.Text
    wait(1)
    print(textBoxInput)
    wait()
end

Any help on this would be appreciated.

Answer this question