Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

ImageLabel not displaying on the screen?

I am working on a game and i want to make it where when a player joins the game, An image pops up. But when i tried this, the image didn't show up and the output isn't helping me. Help?

game.Players.PlayerAdded:connect(function(player)
	local gui = player:WaitForChild("PlayerGui")
	local screen = Instance.new("ScreenGui", gui)
	local frame = Instance.new("Frame", screen)
	frame.Size = UDim2.new(1,0,1,0)
	frame.BackgroundColor3 = Color3.new(0,0,0)
	local textlabel = Instance.new("ImageLabel", screen)
	textlabel.Size = UDim2.new(1,0,.8,0)
	textlabel.Position = UDim2.new(0,0,.1,0)
	textlabel.Image = "rbxgameasset://Images/Cool Text - Pokemon Adventures 213153883449122"
	
end)

2 answers

✓ Accepted answer

The ImageLabel is popping up just you don't have a correctly formatted Image Asset Id so it pops up with nothing.

3 comments

0

alright, thanks. I was scratching my head on this one xD

0

it still doesnt work

0

nevermind, i fixed it :D

You need to make the parent of the label to be the frame, not the ScreenGui.

This discussion is preserved as it was. New answers, comments, and votes are closed.