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: Agh, why does this happen?

Previous Thread :: Next Thread 
Prehistoricman is not online. Prehistoricman
Joined: 20 Sep 2008
Total Posts: 12490
20 Aug 2012 04:28 PM
I have a script:

script.Parent.Changed:connect(function (p)
print(p)
end)
print("script runs")

It simple prints "script runs" and nothing else. I drop the part, nothing. I move it, nothing. I copy and paste it. I re-run the script, nothing.

Something tells me I'm having a bad day.
Report Abuse
awsumpwner27 is not online. awsumpwner27
Joined: 03 Sep 2011
Total Posts: 4389
20 Aug 2012 04:36 PM
If you're using Studio, I have bad news. After running the game once, and restarting, the events no longer fire. If you're not using Studio, something is very wrong, and you should throw your computer out the window before It begins.
Report Abuse
TheCapacitor is not online. TheCapacitor
Joined: 19 Jan 2011
Total Posts: 7045
20 Aug 2012 04:39 PM
Position and Velocity don't call the Changed event dude.
Report Abuse
Prehistoricman is not online. Prehistoricman
Joined: 20 Sep 2008
Total Posts: 12490
20 Aug 2012 04:42 PM
Ah.

But why does Roblox do this?
Report Abuse
Prehistoricman is not online. Prehistoricman
Joined: 20 Sep 2008
Total Posts: 12490
20 Aug 2012 04:43 PM
@Cap
Yeah they do
I also unanchored the brick to get it to fall
Report Abuse
awsumpwner27 is not online. awsumpwner27
Joined: 03 Sep 2011
Total Posts: 4389
20 Aug 2012 04:44 PM
What? They used to. It would be kind of useful to have those things fire the Changed event.
Report Abuse
Candymaniac is not online. Candymaniac
Joined: 08 Oct 2009
Total Posts: 8985
20 Aug 2012 04:46 PM
Try and change the name or edit some of it's properties.

Also, do you need to do:

print(tostring(property))

?

☜▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬☜☆☞▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬☞ - Candymaniac, a highly reactive substance.
Report Abuse
awsumpwner27 is not online. awsumpwner27
Joined: 03 Sep 2011
Total Posts: 4389
20 Aug 2012 04:48 PM
I just checked, Position and Velocity do nothing, but Anchored does.
Report Abuse
Prehistoricman is not online. Prehistoricman
Joined: 20 Sep 2008
Total Posts: 12490
20 Aug 2012 04:50 PM
Well it works on solo. When I drag, it says:

DraggingV1
CFrame
Position
CFrame
Position
CFrame
Position
DraggingV1

It doesn't print anything when I drop it though, suggesting candymaniac is half-right.
Report Abuse
Candymaniac is not online. Candymaniac
Joined: 08 Oct 2009
Total Posts: 8985
20 Aug 2012 04:51 PM
I don't think that the velocity property fires the .Changed event...

☜▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬☜☆☞▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬☞ - Candymaniac, a highly reactive substance.
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