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

Trying to make a billboard gui that displays the character name and picture?

Asked by 6 years ago

local Brick = script.Parent.Parent.Parent local Picture = script.Parent.UserImage local User = script.Parent.Username

function onTouch(Object) local Character = Object.Parent:FindFirstChild("Humanoid") if (Character ~= nil) then local Player = game.Players.GetPlayersFromCharacter(Object.Parent) if (Player ~= nil) then Picture.Image = "http" .. Player.Name User.Text = Player.Name end end end script.Parent.Parentd.Touched:connect(OnTouch)

--whats wrong with this script?

0
Your script would assign the image URL as "httpZeppelin0330", which I assume isn't what you want to do. Maybe take another look at the `Picture.Image` bit? Also please format code correctly using the code block thingy. fredfishy 833 — 6y
0
What I wouldve done is have it as Player["Name User"].Text since you cant have any spaces in te code unless you do that Sergiomontani10 236 — 6y
0
It’s not a space. It’s a different line. He didn’t use code blocks, that’s why it looks like one name. User#19524 175 — 6y

Answer this question