why does this not work, its in a scriptin a textbutton.
function clicked(player)
script.Parent.Parent.ReporterName.Value = "Report1"
script.Parent.Parent.ReportName.Value = "Report2"
end
script.Parent.MouseButton1Down:connect(clicked)
why does this not work, its in a scriptin a textbutton.
function clicked(player)
script.Parent.Parent.ReporterName.Value = "Report1"
script.Parent.Parent.ReportName.Value = "Report2"
end
script.Parent.MouseButton1Down:connect(clicked)
What you are doing is right except you aren't adding Wait()
function clicked()
script.Parent.Parent.ReporterName.Value = "Report1"
wait(1)
script.Parent.Parent.ReportName.Value = "Report2"
wait(1)
end
script.Parent.MouseButton1Down:connect(clicked)
Why add waits? >->
aww, y do I have to explain T_T.... Probably because the value will stay at Report2, and won't change
Check the value not all types can hold text
This discussion is preserved as it was. New answers, comments, and votes are closed.
1 comment
Is this in a LocalScript, or a Script?