I'm working on a roblox billboard GUI and I put in the Image label, when I run it the image doesn't appear. I also added the onTouch to appear the characters name and image. When I test it nothing loads? Here's the code:
local Brick = script.Parent.Parent.Parent
local Picture = script.Parent.UserImage
local User = script.Parent.Username
function onTouch(Object) -- Declares "Object" as the object that triggered the touch event.
local Character = Object.Parent:FindFirstChild("Humanoid")
if (Character ~= nil)then -- Make sure that Character, the humanoid, exsists.
local Player = game.Players:GetPlayerFromCharacter(Object.Parent)-- Declare a local for the humanoid of Object, therefor a character.
if (Player ~= nil)then -- Make sure that the Player exsists.
Picture.Image = "http".. Player.Name -- Set the Image of picture with users profile Picture
User.Text = Player.Name -- Set the text of user to the users name.
end
end
end
script.Parent.Touched:connect(onTouch) -- Connect a Touch Event on Brick with our function.
