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?

3 comments

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.

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

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.