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: quick question

Previous Thread :: Next Thread 
Voile is not online. Voile
Joined: 19 Dec 2011
Total Posts: 7598
09 Jan 2014 09:57 PM
-- this is a script, and inside of it theres a local script

localscript = script.LocalScript

function umpalumpa()
print("hi")
end

localscript.Parent.Changed:connect(umpalumpa)

-- would that print umpalumpa
Report Abuse
Voile is not online. Voile
Joined: 19 Dec 2011
Total Posts: 7598
09 Jan 2014 09:58 PM
if the localscript's place changed???
Report Abuse
SpeedySeat is online. SpeedySeat
Joined: 06 Jul 2011
Total Posts: 3048
09 Jan 2014 11:27 PM
no

you need to check the object for changes, the property that changes is the parent, therefore the object still changed
Report Abuse
lolb3 is not online. lolb3
Joined: 16 Jan 2010
Total Posts: 2268
09 Jan 2014 11:33 PM
what ss is saying is that you'd do this

loclscript.Changed:connect(function(prop) --prop = property
if prop == "Parent" then
umpalumpa()
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