|
| 08 Oct 2015 05:42 PM |
CODE: function Changed() script.Parent.Text = game.Workspace.GameValues.StatusText.Value end game.Workspace.GameValues.StatusText.Value.Changed:connect(Changed)
ERROR MESSAGE: Players.Player.PlayerGui.Main.MainFrame.TextLabel.LocalScript:5: attempt to index field 'Changed' (a nil value)
INFO: The value type of the value it is watching to check if it changed is string.
It is such a simple script in theory.. I don't understand why it says "Changed" isn't an actual value, did I spell something wrong? |
|
|
| Report Abuse |
|
|
| |
|
xlaser23
|
  |
| Joined: 10 Dec 2011 |
| Total Posts: 20341 |
|
|
| 08 Oct 2015 05:44 PM |
Try using varibles first
and use " "
http://www.roblox.com/xla-item?id=290739801http://www.roblox.com/aser-item?id=290739819http://www.roblox.com/23-item?id=290739831 R$278 Tx1,048 |
|
|
| Report Abuse |
|
|
xlaser23
|
  |
| Joined: 10 Dec 2011 |
| Total Posts: 20341 |
|
|
| 08 Oct 2015 05:45 PM |
no need to bump a thread on scripters....
http://www.roblox.com/xla-item?id=290739801http://www.roblox.com/aser-item?id=290739819http://www.roblox.com/23-item?id=290739831 R$278 Tx1,048 |
|
|
| Report Abuse |
|
|
|
| 08 Oct 2015 05:47 PM |
your code:
game.Workspace.GameValues.StatusText.Value.Changed:connect(Changed)
You are trying to see when the VALUE of StatusText changes (Value is a property, and it has no .Changed connection)
correct code: game.Workspace.GameValues.StatusText.Changed:connect(Changed)
This will fire whenever the StatusText properties changes, one of those being StatusText.Value |
|
|
| Report Abuse |
|
|
murcury57
|
  |
| Joined: 30 Jun 2010 |
| Total Posts: 90299 |
|
| |
|
|
| 08 Oct 2015 05:47 PM |
| That doesn't really make sense, considering the error message.. |
|
|
| Report Abuse |
|
|
|
| 08 Oct 2015 05:48 PM |
| my previous post was aimed at xlaser |
|
|
| Report Abuse |
|
|
|
| 08 Oct 2015 05:52 PM |
| Thanks, teamkilled. It worked. |
|
|
| Report Abuse |
|
|