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

Cant get script to work that takes information from parts stated and adds them to a GUI?

Asked by 5 years ago
while true do
    wait(.1)
    script.Parent.SurfaceGui["Rank:"].Tag.text = script.Parent.Parent.Name
    script.Parent.SurfaceGui["Regiment:"].Tag.text = script.Parent.Parent.Parent.Name
end

1 answer

Log in to vote
0
Answered by 5 years ago

That is some funky naming you got there, but your problem is most likely that you didn't capitalize 'text'.

script.Parent.SurfaceGui["Rank:"].Tag.Text = script.Parent.Parent.Name
script.Parent.SurfaceGui["Regiment:"].Tag.Text = script.Parent.Parent.Parent.Name
Ad

Answer this question