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: Changed

Previous Thread :: Next Thread 
TellerMan is not online. TellerMan
Joined: 23 Apr 2010
Total Posts: 237
09 Jul 2013 07:53 PM
How does the changed event work? I tried doing this...

script.Parent.Parent.Parent.Changed:connect(function(player)

But it didn't seem to work. Details on Changed?
Report Abuse
CodyTheBuildingKid is not online. CodyTheBuildingKid
Joined: 13 Dec 2011
Total Posts: 4399
09 Jul 2013 07:55 PM
Don't know what 'script.Parent.Parent.Parent' is, so you're not really giving me much info.

        local Part = Game.Workspace.Part

        Part.Changed:connect(function(Property)
                print(Property, Part[Property])
        end)

The Changed event returns the changed property by string.
Report Abuse
TellerMan is not online. TellerMan
Joined: 23 Apr 2010
Total Posts: 237
09 Jul 2013 07:59 PM
This is GUI changed. This is a GUI and when the parent of the gui is changed, the script which has to go Parent.Parent.Parent, activates(or should).
Report Abuse
SpleenYanks is not online. SpleenYanks
Joined: 24 Aug 2008
Total Posts: 921
09 Jul 2013 08:04 PM
That's a overly complicated way to do anything, I would suggest rethinking your idea.
Report Abuse
TellerMan is not online. TellerMan
Joined: 23 Apr 2010
Total Posts: 237
09 Jul 2013 08:07 PM
Well I need to figure out a way to do this. Here let me explain:

It is a GUI for a quest that shows you how many _____'s you've killed.
And this script, clones the gui, and makes it visible. But when it's cloned, the variable
for player no longer is valid because the amount of Parents has changed. So I need this function for the function(player). But there is probably another way, I'm just confused.
Report Abuse
SpleenYanks is not online. SpleenYanks
Joined: 24 Aug 2008
Total Posts: 921
09 Jul 2013 08:09 PM
anything.Changed(function(Stuff)
The stuff is a string of what property was changed. I have no clue why you would use Changed.
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