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

Previous Thread :: Next Thread 
Alt1515 is not online. Alt1515
Joined: 07 Feb 2015
Total Posts: 55
21 Feb 2015 06:25 PM

script.Changed:connect(function()
if script.Parent == "row2" then
for i = 4.5,-71.5,-.5 do
local log = script.Parent.Parent:FindFirstChild("log1")
log.Position = log.Position+Vector3.new(i, 0, 0, 0)
end
end
end)

I'm trying to run this when the scripts parent is changed, but it doesn't output anything.
Report Abuse
cosmo9512 is not online. cosmo9512
Joined: 20 Jun 2013
Total Posts: 1407
21 Feb 2015 06:26 PM
script.AncestryChanged
Report Abuse
ChiefDelta is not online. ChiefDelta
Joined: 05 Nov 2010
Total Posts: 13071
21 Feb 2015 06:26 PM
Wrong event,
Report Abuse
cosmo9512 is not online. cosmo9512
Joined: 20 Jun 2013
Total Posts: 1407
21 Feb 2015 06:27 PM
@chief

me or alt?
Report Abuse
ChiefDelta is not online. ChiefDelta
Joined: 05 Nov 2010
Total Posts: 13071
21 Feb 2015 06:28 PM
Him
Report Abuse
cosmo9512 is not online. cosmo9512
Joined: 20 Jun 2013
Total Posts: 1407
21 Feb 2015 06:29 PM
alright

.AncestryChanged should work.
Report Abuse
Alt1515 is not online. Alt1515
Joined: 07 Feb 2015
Total Posts: 55
21 Feb 2015 06:32 PM
Yep thanks, going to look into .AncestryChanged
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