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

How to use a GUI for a decal insert-mabober?

Asked by 10 years ago

I am at a loss here. The goal of this script is when the "insert button" is clicked then the number string in the textbox will be the preexisting decal id. Here is my script

button = script.Parent
DecalId = script.Parent.DecalId
screen1 = game.Workspace.screen1
screen2 = game.Workspace.screen2

function onclicked()
    screen1 = "http://www.roblox.com/asset/?id="..(tostring(button.idInput.Text - 1))
    screen2 = "http://www.roblox.com/asset/?id="..(tostring(button.idInput.Text - 1))
end

script.Parent.idInput.MouseButton1Down:connect(onclicked)

Answer this question