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: Data Persistence Help Please

Previous Thread :: Next Thread 
lego555444 is not online. lego555444
Joined: 21 Sep 2008
Total Posts: 1383
17 Jan 2014 09:29 PM
Why doesn't this give me any errors? But it doesn't run past the --Saving line



local player = script.Parent.Parent.Parent.Parent.Parent
local character = player.Character
local mouse = player:GetMouse()
local cam = workspace.CurrentCamera

script.Parent.MouseButton1Click:connect(function()
script.Parent.Parent.Parent.Parent.Parent.Character:MoveTo(game.Workspace.Deploy.Position)
script.Parent.Parent.Parent.Parent.Parent.Backpack.CutsceneScript:Destroy()
wait()
cam.CameraType = Enum.CameraType.Custom --<<<< That is the kind of camera mode being set to
--Saving...
player:WaitForDataReady()
print("Saving Data...")
player:SaveInstance("Gun", cam.Gun)
--Done Saving...
wait()
print("Player Entered Map")
script.Parent.Parent.Parent:Destroy()
end)


Report Abuse
lego555444 is not online. lego555444
Joined: 21 Sep 2008
Total Posts: 1383
17 Jan 2014 10:07 PM
Bump
Report Abuse
Christbru01 is not online. Christbru01
Joined: 03 Apr 2010
Total Posts: 649
17 Jan 2014 10:13 PM
Where are you running this script when you test it? In a game?
Report Abuse
lego555444 is not online. lego555444
Joined: 21 Sep 2008
Total Posts: 1383
17 Jan 2014 10:48 PM
From a gui and yes the script is running I know that.
Report Abuse
lego555444 is not online. lego555444
Joined: 21 Sep 2008
Total Posts: 1383
17 Jan 2014 10:51 PM
Also from build and play mode
Report Abuse
lego555444 is not online. lego555444
Joined: 21 Sep 2008
Total Posts: 1383
17 Jan 2014 11:00 PM
Bump
Report Abuse
lego555444 is not online. lego555444
Joined: 21 Sep 2008
Total Posts: 1383
17 Jan 2014 11:10 PM
Bump
Report Abuse
brandonnstar is not online. brandonnstar
Joined: 06 Aug 2008
Total Posts: 56
17 Jan 2014 11:28 PM
Make sure it's not local.
Report Abuse
lego555444 is not online. lego555444
Joined: 21 Sep 2008
Total Posts: 1383
18 Jan 2014 12:14 AM
Well that explains. I'm trying to save local parts; how else would i access the camera without a local script?
Report Abuse
lego555444 is not online. lego555444
Joined: 21 Sep 2008
Total Posts: 1383
18 Jan 2014 12:34 PM
BUMP
Report Abuse
brandonnstar is not online. brandonnstar
Joined: 06 Aug 2008
Total Posts: 56
19 Jan 2014 12:28 AM
Data Persistence is not ran with local script..
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