so basically whenever you enter a id into the textbox, it will show it in the viewport frame on the part but it no worke!!
local text = script.Parent
text.FocusLost:Connect(function(enterpressed)
if enterpressed then
script.Parent.Parent.ViewportFrame.gamepassball.Decal.Texture = "http://www.roblox.com/asset/?id="..text.Text
end
end)
local text = script.Parent
local decalid = (text.Text)
local yes = string.format("rbxthumb://type=Asset&id=%s&w=420&h=420", decalid)
text.FocusLost:Connect(function(enterpressed)
if enterpressed then
script.Parent.Parent.ViewportFrame.gamepassball.Decal.Texture = yes
end
end)
You could check if Text.FocusLost is actually being called or if the condition is true by adding print statements to the code like this:
local text = script.Parent
text.FocusLost:Connect(function(enterpressed)
print("focus lost")
if enterpressed then
print("yes")
script.Parent.Parent.ViewportFrame.gamepassball.Decal.Texture = "http://www.roblox.com/asset/?id="..text.Text
end
end)
Then you could check the console to see if it printed or if there were any errors.
you think i havent tried that before going to a devforum? i said thats not my problem anymore its that the decal is working but its invisible/not getting set correctly
Oh ok, I was just making sure. If you’re still debating between a Viewport Frame and an Image Label, you should try the Image Label and see how you like it (if it works)