Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

Something doesnt run right?

PF = script.Parent
function sup()
if PF.Name.Value ~= nil then
	PF.Pic.Decal.Texture = "http://www.roblox.com/Thumbs/Avatar.ashx?x=200&y=200&Format=Png&username="..PF.Name.Value
	PF.PN.SurfaceGui.Frame.Textbox.Text = ""..PF.Name.Value
end
	
end
sup()

What the script is supposed to do is show the players logo and name of whoevers name is in the stringvalue of Name If you have ever seen the portrait with roblox tools similar except added the name

2 comments

0

Filtering enabled could be the problem, use remote events.

0

Could it be because you're using .Name.Value and Name doesn't have a Value property. You've probably got a StringValue called Name but it would default to the property of the script's parent not the object in the script's parent. Change the name of the value, that may solve your problem.

1 answer

Disclaimer: This is what I see in the script since I don't actually see the parts and what not, so I apologize if my answer is wrong.

Problem: It appears that you have given a property's name to an object. Example: A BasePart named Name, a ScreenGui named Name, etc.

Solution: Change the name of the object you are defining. The script will search for the property rather than the name, causing an error. Say you had a part named Name. If you were to define it, you would get an error since it is looking at the property of the Name's parent rather then the part named Name.

This discussion is preserved as it was. New answers, comments, and votes are closed.