1WOOF1
|
  |
| Joined: 03 May 2009 |
| Total Posts: 20682 |
|
| |
|
|
| 30 Sep 2011 03:03 PM |
value = "Value Name"
game.Workspace[value].Changed:connect(function()
---code
end) |
|
|
| Report Abuse |
|
|
1WOOF1
|
  |
| Joined: 03 May 2009 |
| Total Posts: 20682 |
|
| |
|
|
| 30 Sep 2011 03:05 PM |
| Yea, just giving you an example. |
|
|
| Report Abuse |
|
|
1WOOF1
|
  |
| Joined: 03 May 2009 |
| Total Posts: 20682 |
|
| |
|
|
| 30 Sep 2011 03:08 PM |
I believe this is a function, no?
"alert("RAIDERS ARE IN OUR BASE CAPTURING THE BASE!",workspace,3)" |
|
|
| Report Abuse |
|
|
1WOOF1
|
  |
| Joined: 03 May 2009 |
| Total Posts: 20682 |
|
| |
|
|
| 30 Sep 2011 03:10 PM |
| And you said it doesn't work? |
|
|
| Report Abuse |
|
|
1WOOF1
|
  |
| Joined: 03 May 2009 |
| Total Posts: 20682 |
|
| |
|
|
| 30 Sep 2011 03:12 PM |
| Can you put the alert part in here? It must be that, elsewise, if its not, then it might be just my eyes... |
|
|
| Report Abuse |
|
|
1WOOF1
|
  |
| Joined: 03 May 2009 |
| Total Posts: 20682 |
|
| |
|
|
| 30 Sep 2011 03:15 PM |
"workspace["Capture Point One"].Capt"
~~~~
Are you sure its value? Any type of value works fine, and ever tried the output? |
|
|
| Report Abuse |
|
|
1WOOF1
|
  |
| Joined: 03 May 2009 |
| Total Posts: 20682 |
|
| |
|
1WOOF1
|
  |
| Joined: 03 May 2009 |
| Total Posts: 20682 |
|
| |
|
1WOOF1
|
  |
| Joined: 03 May 2009 |
| Total Posts: 20682 |
|
| |
|
1WOOF1
|
  |
| Joined: 03 May 2009 |
| Total Posts: 20682 |
|
| |
|
Ozzypig
|
  |
| Joined: 27 Mar 2008 |
| Total Posts: 4906 |
|
|
| 30 Sep 2011 04:10 PM |
There are TWO kinds of Changed events, ones for all instances, and those only for IntValues, NumberValues, StringValues, etc.
The first one works like this:
workspace.Brick.Changed:connect(function (property) print(property) end)
It prints the property name that changed.
The latter of the two will return the new value:
workspace.IntValue.Changed:connect(function (newvalue) print(newvalue) end)
~Ozzy roblox.com/my/groups.aspx?gid=372 |
|
|
| Report Abuse |
|
|
1WOOF1
|
  |
| Joined: 03 May 2009 |
| Total Posts: 20682 |
|
| |
|
Miro034
|
  |
| Joined: 07 Oct 2009 |
| Total Posts: 6568 |
|
| |
|
1WOOF1
|
  |
| Joined: 03 May 2009 |
| Total Posts: 20682 |
|
| |
|
Miro034
|
  |
| Joined: 07 Oct 2009 |
| Total Posts: 6568 |
|
|
| 30 Sep 2011 04:21 PM |
| I was gonna say the same thing as ozzypig, it changes something...That's it xD |
|
|
| Report Abuse |
|
|
1WOOF1
|
  |
| Joined: 03 May 2009 |
| Total Posts: 20682 |
|
| |
|
|
| 30 Sep 2011 04:30 PM |
| It seems like ROBLOX broke .Changed.. It wont work, no matter the object I try, or property D= *sadface* |
|
|
| Report Abuse |
|
|
|
| 30 Sep 2011 04:36 PM |
No... If i restart studio = .Changed works
If i run this script= It doesnt work
If i try to test .Changed again like after restarting = doesnt work
WTH?! D==
Impossible.. Your script breaks .Changed! D=
|
|
|
| Report Abuse |
|
|
|
| 30 Sep 2011 04:38 PM |
OMIGOD WHATS HAPPENING?!
Now the script worked after i put "alerted = false" to the start of the script..
Why would that change anything? I dont know D:
Im totally confused.. |
|
|
| Report Abuse |
|
|