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

ImageLabel not displaying on the screen?

Asked by 8 years ago

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

Log in to vote
0
Answered by 8 years ago
Edited 8 years ago

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

0
alright, thanks. I was scratching my head on this one xD Lukeisbossman64 73 — 8y
0
it still doesnt work Lukeisbossman64 73 — 8y
0
nevermind, i fixed it :D Lukeisbossman64 73 — 8y
Ad
Log in to vote
0
Answered by
thePyxi 179
8 years ago

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

Answer this question