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: Two problems, main one .changed

Previous Thread :: Next Thread 
xFortunato is not online. xFortunato
Joined: 25 Nov 2010
Total Posts: 865
27 Jan 2012 10:29 PM
The first: .Changed isn't working. I'm using it on a boolean value, and it worked the first time but now it is unresponsive.

function onDeploy(val)
print("deploy")
print(val)
end
script.Parent.Deploy.Changed:connect(onDeploy)

-------------- The first time I ran the above, it worked fine but then I ran it again and it didn't work, and it hasn't worked again yet (even after deleting the script and boolean and trying new ones.


2nd: I think Roblox messed up the rotate feature in studio, can anyone else confirm this? The new rotate gui with the large cframe circles has selectable boxes but they don't seem to want to be selected.
Report Abuse
blueymaddog is not online. blueymaddog
Joined: 23 Sep 2009
Total Posts: 5459
27 Jan 2012 10:31 PM
did u set the bool value to 'true' or 'false' or did you set the bool to 'not bool'
Report Abuse
xFortunato is not online. xFortunato
Joined: 25 Nov 2010
Total Posts: 865
27 Jan 2012 10:34 PM
true and false to test
Report Abuse
FreeGamesROBLOX is not online. FreeGamesROBLOX
Joined: 15 Jun 2011
Total Posts: 6622
27 Jan 2012 10:39 PM
Output
Report Abuse
blueymaddog is not online. blueymaddog
Joined: 23 Sep 2009
Total Posts: 5459
27 Jan 2012 10:40 PM
use this:

bool.Value = not bool.Value
Report Abuse
blueymaddog is not online. blueymaddog
Joined: 23 Sep 2009
Total Posts: 5459
27 Jan 2012 10:41 PM
@Free, you obviously dont understand the problem, it's a logical error, not a syntax error. the output only shows syntax errors because they cant read your mind :/
Report Abuse
xFortunato is not online. xFortunato
Joined: 25 Nov 2010
Total Posts: 865
27 Jan 2012 10:44 PM
No, blue, that didn't work

Here's the output from when it worked
----------
deploy
true
deploy
false
deploy
true
----------

I was just changing the status of the boolean from true to false and back in the properties panel
Now with the same exact code (and yes, the server and script are running), there is no output.
I'm pretty sure this is a Roblox error, not a logical one on my part
Report Abuse
TheImpersonator is not online. TheImpersonator
Joined: 19 Jul 2011
Total Posts: 111
27 Jan 2012 10:46 PM
Did you click the green play button then the reset one at any point? There is a glitch where events stop working after you reset it the first time. Try restarting studio.
Report Abuse
xFortunato is not online. xFortunato
Joined: 25 Nov 2010
Total Posts: 865
27 Jan 2012 10:51 PM
That's strange I did do that once maybe but it affects test servers as well? Thanks for the tip
Also do you know about the rotate feature?
Report Abuse
blueymaddog is not online. blueymaddog
Joined: 23 Sep 2009
Total Posts: 5459
27 Jan 2012 10:56 PM
are they adding rotatable GUIs :D?
Report Abuse
shadowsoulforever is not online. shadowsoulforever
Joined: 28 Sep 2011
Total Posts: 635
27 Jan 2012 10:58 PM
script.Parent.Deploy.Changed:connect(function(Value)
   if Value~="Boolean" then return end
   print("Deploy value="..Value)
end)

I don't see what the problem is though.
Try that. What does it do?
Report Abuse
xFortunato is not online. xFortunato
Joined: 25 Nov 2010
Total Posts: 865
27 Jan 2012 10:58 PM
Yes, a very good improvement over the old movement-axis rotation GUI, but it looks like it isn't working yet.
Wouldn't be a problem since I can just rotate with the command line, but I want to rotate a model...
Report Abuse
shadowsoulforever is not online. shadowsoulforever
Joined: 28 Sep 2011
Total Posts: 635
27 Jan 2012 11:01 PM
Well use
Brick.CFrame = CFrame.new(0,0,0)*CFrame.Angles(0,0,0)
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