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 » Scripting Helpers
Home Search
 

Re: Is it possible use changed event on tables

Previous Thread :: Next Thread 
CaptainSource is not online. CaptainSource
Joined: 08 Jun 2013
Total Posts: 848
16 Aug 2014 07:30 AM
ya is it possible ?

like
a = {1,2}
a.changed
Report Abuse
filiptibell is not online. filiptibell
Joined: 10 Mar 2013
Total Posts: 2362
16 Aug 2014 07:34 AM
Tables are a data type. Data types don't have any events.

~The herp lerped a derp~
Report Abuse
CaptainSource is not online. CaptainSource
Joined: 08 Jun 2013
Total Posts: 848
16 Aug 2014 07:41 AM
Mhm then is there little trick do it ?
Report Abuse
Bobobob12 is not online. Bobobob12
Joined: 23 Jan 2008
Total Posts: 5350
16 Aug 2014 07:42 AM
describe what you're trying to use it for and then we can help you think of a "trick."
Report Abuse
CaptainSource is not online. CaptainSource
Joined: 08 Jun 2013
Total Posts: 848
16 Aug 2014 07:45 AM
I am making maze when you click on first part code goes 2,0,0 when click second part code goes 2,1,0 when you click third part code goes 2,1,3 so i want to check it code is 2,1,3 then something happen.
Report Abuse
filiptibell is not online. filiptibell
Joined: 10 Mar 2013
Total Posts: 2362
16 Aug 2014 07:49 AM
Then check it during the clicked event...

~The herp lerped a derp~
Report Abuse
CaptainSource is not online. CaptainSource
Joined: 08 Jun 2013
Total Posts: 848
16 Aug 2014 07:51 AM
yea i know but i wish it would be possible :p
Report Abuse
Kodran is not online. Kodran
Joined: 15 Aug 2013
Total Posts: 5330
16 Aug 2014 07:57 AM
Maybe something like this?

table = {"", ""}
oldtable = {"", ""}

coroutine.resume(coroutine.create(function()
wait(5)
table[1] = "a"
end))

while wait() do
for i, v in pairs (table) do
if table[i] ~= oldtable[i] then
--index i in the table has changed!
end
oldtable = table
end
end
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • 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