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: How could I save what's in the player's camera?

Previous Thread :: Next Thread 
rudolph101 is not online. rudolph101
Joined: 15 Jan 2009
Total Posts: 11873
17 Aug 2013 05:25 AM
I have this script already in a normal script:

script.Parent.MouseButton1Down:connect(function(player)
local name = script.Parent.Parent.Parent.Parent.Parent
script.Parent.Parent.Parent.Parent.Parent:SaveInstance("r", script.Parent.Parent.Parent.Parent.Parent.PlayerGui["Quest GUI"])
script.Parent.Parent.Parent.Parent.Parent:SaveNumber("Leaderstats", name.leaderstats.Money.Value)
end)

My problem is I want to save what's in the player's camera which means I need to use a local script, but data persistence doesn't work in local scripts, so I'm a bit confused about what I should do. Cold I have some help please?
Report Abuse
canada1232111 is not online. canada1232111
Joined: 16 Jan 2013
Total Posts: 863
17 Aug 2013 05:26 AM
Save what's in the players camera?!? wdf is dis.

Please I need to know why you need this for my sake.
Report Abuse
rudolph101 is not online. rudolph101
Joined: 15 Jan 2009
Total Posts: 11873
17 Aug 2013 05:27 AM
My game uses Local Bricks.
Report Abuse
canada1232111 is not online. canada1232111
Joined: 16 Jan 2013
Total Posts: 863
17 Aug 2013 05:28 AM
and there in the players camera?
Report Abuse
rudolph101 is not online. rudolph101
Joined: 15 Jan 2009
Total Posts: 11873
17 Aug 2013 05:29 AM
Well yeah that's how local bricks work. :3
Report Abuse
canada1232111 is not online. canada1232111
Joined: 16 Jan 2013
Total Posts: 863
17 Aug 2013 05:30 AM
*Mind = blowned*


I must learn this "local brick" stuff.
Report Abuse
MainDirectory is not online. MainDirectory
Joined: 20 Dec 2012
Total Posts: 1834
17 Aug 2013 05:31 AM
Sir, you could store your parts in a message in your character(makes them local, only you can see them), then parent the message to lighting when you die, then when you respawn parent it back c;
Report Abuse
canada1232111 is not online. canada1232111
Joined: 16 Jan 2013
Total Posts: 863
17 Aug 2013 05:35 AM
@MainDirectory I think he also wants that when the player leaves, and comes back they'll have there parts.
Report Abuse
MainDirectory is not online. MainDirectory
Joined: 20 Dec 2012
Total Posts: 1834
17 Aug 2013 05:36 AM
DP bruh, do da harlem shakeeeee, and dp. c:
Report Abuse
ddbaker95 is not online. ddbaker95
Joined: 29 Nov 2008
Total Posts: 127
17 Aug 2013 05:44 AM
I would create Values, store them in the player, and make them equal to the certain values in the camera, so that later you can access them.
Report Abuse
ddbaker95 is not online. ddbaker95
Joined: 29 Nov 2008
Total Posts: 127
17 Aug 2013 05:45 AM
Although, I can still not figure out why you would even want to do this.
Report Abuse
rudolph101 is not online. rudolph101
Joined: 15 Jan 2009
Total Posts: 11873
17 Aug 2013 09:26 AM
On my game there are quests. One quests involves removing bricks by clicking them.
When you click them they're removed out of your camera so others can still do it themselves.
When you quit I wanted it to save what's in the camera so you don't have to click all of the bricks again, only the ones you haven't yet clicked so you can just carry on.
That's what it's for.

Anyway thanks guys! Problem solved!
Report Abuse
BJCarpenter is not online. BJCarpenter
Joined: 04 Nov 2008
Total Posts: 4416
17 Aug 2013 09:32 AM
Do not have Local Player's Parts in Camera. Have them in Lighting.

Copy to Camera.
When you click them they're removed out of your camera, and Lighting.
On Death, Save the ones in Lighting.
Report Abuse
Infocus is not online. Infocus
Joined: 28 Apr 2011
Total Posts: 8022
17 Aug 2013 09:41 AM
Do what dd said
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