|
| 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 |
|
|
| |
|
|
| 17 Jan 2014 10:13 PM |
| Where are you running this script when you test it? In a game? |
|
|
| Report Abuse |
|
|
|
| 17 Jan 2014 10:48 PM |
| From a gui and yes the script is running I know that. |
|
|
| Report Abuse |
|
|
|
| 17 Jan 2014 10:51 PM |
| Also from build and play mode |
|
|
| Report Abuse |
|
|
| |
|
| |
|
| |
|
|
| 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 |
|
|
| |
|
|
| 19 Jan 2014 12:28 AM |
| Data Persistence is not ran with local script.. |
|
|
| Report Abuse |
|
|