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: Effective way to save all CFrames in a model

Previous Thread :: Next Thread 
MrLisawsome is not online. MrLisawsome
Joined: 18 Jan 2010
Total Posts: 3606
18 Apr 2014 11:24 AM
I would like to know a way to save all of the original CFrame values in the bricks in a model.

The easiest way I can think of would to just put CFrameValues in all of the blocks and read from those after they're set at the beginning.

But I would like to know how it could be done without them.

Anyone?
Report Abuse
Scriptural is not online. Scriptural
Joined: 06 Sep 2013
Total Posts: 2979
18 Apr 2014 11:26 AM
tables
Report Abuse
MrLisawsome is not online. MrLisawsome
Joined: 18 Jan 2010
Total Posts: 3606
18 Apr 2014 11:27 AM
I always forget tables are a thing. They seem really useful but I neglect them. I'll be back with what I come up with.. if it doesn't work, that is.
Report Abuse
MrLisawsome is not online. MrLisawsome
Joined: 18 Jan 2010
Total Posts: 3606
18 Apr 2014 11:28 AM
Also seems like for the longest time I had been mistaking tables for something else..
Report Abuse
Scriptural is not online. Scriptural
Joined: 06 Sep 2013
Total Posts: 2979
18 Apr 2014 11:32 AM
this is a interesting thing also

local bool = true
if bool then
print("its true")
else
print("its false")
end

can be shortened

local bool = true
print( (bool and "its true" or "its false") )


its very useful for things

while wait(1) do
script.Parent.Transparency = (script.Parent.Transparency == 0 and 0.5 or (script.Parent.Transparency == 0.5 and 1 or 0))
end
Report Abuse
Scriptural is not online. Scriptural
Joined: 06 Sep 2013
Total Posts: 2979
18 Apr 2014 11:32 AM
Tables are like a list
What do you need help with?
Report Abuse
MrLisawsome is not online. MrLisawsome
Joined: 18 Jan 2010
Total Posts: 3606
18 Apr 2014 11:33 AM
I mistook them for something else :s
Report Abuse
Scriptural is not online. Scriptural
Joined: 06 Sep 2013
Total Posts: 2979
18 Apr 2014 11:35 AM
You understand them now though right?
Report Abuse
MrLisawsome is not online. MrLisawsome
Joined: 18 Jan 2010
Total Posts: 3606
18 Apr 2014 11:37 AM
I did before, I've BEEN using them, I always mistook the name for something else. I have no idea how. I'm not the brightest person..
Report Abuse
Scriptural is not online. Scriptural
Joined: 06 Sep 2013
Total Posts: 2979
18 Apr 2014 11:38 AM
What did you think tables were :3
Report Abuse
MrLisawsome is not online. MrLisawsome
Joined: 18 Jan 2010
Total Posts: 3606
18 Apr 2014 11:43 AM
I'm not sure, actually..

I DON'T KNOW HOW MY BRAIN WORKS
Report Abuse
Scriptural is not online. Scriptural
Joined: 06 Sep 2013
Total Posts: 2979
18 Apr 2014 11:45 AM
p.s.
https://www.youtube.com/watch?v=Hy8dlSEu6k8
Report Abuse
MrLisawsome is not online. MrLisawsome
Joined: 18 Jan 2010
Total Posts: 3606
18 Apr 2014 11:51 AM
Yeah I get how that works
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