generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripters
Home Search
 

Re: Why won't this .Changed function work?

Previous Thread :: Next Thread 
bigbadvulture is not online. bigbadvulture
Joined: 16 May 2012
Total Posts: 351
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
bigbadvulture is not online. bigbadvulture
Joined: 16 May 2012
Total Posts: 351
08 Oct 2015 05:44 PM
bump
Report Abuse
xlaser23 is not online. 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 is not online. 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
teamkilled is not online. teamkilled
Joined: 14 Apr 2013
Total Posts: 1748
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 is not online. murcury57
Joined: 30 Jun 2010
Total Posts: 90299
08 Oct 2015 05:47 PM
[ Content Deleted ]
Report Abuse
bigbadvulture is not online. bigbadvulture
Joined: 16 May 2012
Total Posts: 351
08 Oct 2015 05:47 PM
That doesn't really make sense, considering the error message..
Report Abuse
bigbadvulture is not online. bigbadvulture
Joined: 16 May 2012
Total Posts: 351
08 Oct 2015 05:48 PM
my previous post was aimed at xlaser
Report Abuse
bigbadvulture is not online. bigbadvulture
Joined: 16 May 2012
Total Posts: 351
08 Oct 2015 05:52 PM
Thanks, teamkilled. It worked.
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image