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

Something doesnt run right?

Asked by 8 years ago

Please make your question title relevant to your question content. It should be a one-sentence summary in question form.
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

0
Filtering enabled could be the problem, use remote events. JamesLWalker 297 — 8y
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. General_Scripter 425 — 8y

1 answer

Log in to vote
0
Answered by 8 years ago

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.

Ad

Answer this question