|
| 08 May 2014 06:48 PM |
Output says TopClicksGUI is not a valid member of PlayerGui
there is a variable that directs to TopClicksGui (screenGui)
I made sure it was all good and directed properly. I really do not know what the problem is? |
|
|
| Report Abuse |
|
|
Soybeen
|
  |
| Joined: 17 Feb 2010 |
| Total Posts: 21462 |
|
|
| 08 May 2014 06:51 PM |
Post some code so we can see, we can't dictate the problem if we don't have the script.
Either TopClicksGUI isn't a child of PlayerGui, or you tagged it wrong in your script.
Make sure you tag it like this:
x = playerpath.PlayerGui.TopClicksGUI
Not like this:
playerpath.PlayerGui.TopClicksGUI = x |
|
|
| Report Abuse |
|
|
|
| 08 May 2014 06:52 PM |
clicksButton = script.Parent.Parent.Parent.Parent.TopClicksGUI.TextLabel
player = script.Parent.Parent.Parent.Parent.Parent
while true do wait() clicksButton.Text = "Your clicks: "..script.Parent.Value end
|
|
|
| Report Abuse |
|
|
|
| 08 May 2014 06:53 PM |
| Everything worked correctly yesterday, i don't know why it's not working now. |
|
|
| Report Abuse |
|
|
Soybeen
|
  |
| Joined: 17 Feb 2010 |
| Total Posts: 21462 |
|
|
| 08 May 2014 07:01 PM |
Perhaps you're trying to interact with TopClicksGUI before it's fully loaded. Use this at the beginning of your code:
repeat wait() until script.Parent.Parent.Parent.Parent.TopClicksGUI ~= nil |
|
|
| Report Abuse |
|
|
Soybeen
|
  |
| Joined: 17 Feb 2010 |
| Total Posts: 21462 |
|
|
| 08 May 2014 07:01 PM |
That is, if you are 100% sure that the TopClicksGUI is: - Spelled right or - A direct child of PlayerGui |
|
|
| Report Abuse |
|
|
| |
|
Soybeen
|
  |
| Joined: 17 Feb 2010 |
| Total Posts: 21462 |
|
| |
|
|
| 08 May 2014 07:04 PM |
| I'm 100% sure it's spelled right |
|
|
| Report Abuse |
|
|
| |
|
| |
|