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

How do I get a player's image onto a part using a GUI?

Asked by 5 years ago

I'm trying to make a fallen screen from the hunger games, but whenever I try to use it nothing happens. (Filtering Enabled)

local clicker = script.Parent.ClickDetector

local fallen = workspace.Fallen
local screen = workspace.FallenScreen
local fallenimage = workspace.FallenScreen.Decal

local gui = game.StarterGui.ScreenGui
local username = gui.User

local guiclicker = gui.Confirm

username.MouseButton1Click:Connect(function()
fallenimage = "http://www.roblox.com/Thumbs/Avatar.ashx?x=100&y=100&Format=Png&username="..username
end

Thanks if you can help.

1
"http://www.roblox.com/Thumbs/Avatar.ashx?x=150&y=150&Format=Png&username=" .. Player.Name greatneil80 2647 — 5y
0
fallenimage.Texture = "http://www.roblox.com/Thumbs/Avatar.ashx?x=100&y=100&Format=Png&username="..username Rare_tendo 3000 — 5y

2 answers

Log in to vote
0
Answered by 5 years ago

Day late, but basically you need to define the Local Player, as greatneil80 mentioned in his comment.

This could easily be done by changing username to something like username = Players.LocalPlayer.Username which will work locally, because it is for a script on a GUI, which should be a local script.

This should be able to pull the image you desire, and work locally without any issues.

0
I'll give it a try CaptainAlien132 225 — 5y
Ad
Log in to vote
-3
Answered by 5 years ago

It's just not possible. I wish it were D:.

1
Yes it is turtle2004 167 — 5y

Answer this question