I am trying to make my imagelabel to be able to display my player's image. I run the game and it gives me an error saying that the trust check has failed. The imagelabel doesn't display the player image at all. This is all done on a billboard GUI element. I think you will understand the problem better if I just paste my code.
local Brick = script.Parent.Parent.Parent
local Picture = script.Parent.UserImage
local User = script.Parent.Username
Brick.Touched:connect(function(Object)
local Character = Object.Parent:FindFirstChild("Humanoid")
if Character ~= nil then --Make sure the character is a character or an NPC
local Player = game:GetService("Players"):GetPlayerFromCharacter(Object.Parent)
if Player ~= nil then --This should be narrowed down to a player instead of an NPC
Picture.Image = "http"..Player.Name
User.Text = Player.Name
end
end
end)

1 comment
Did you even TRY to put any effort into that?