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 » Scripters
Home Search
 

Did I do this right?

Previous Thread :: Next Thread 
textartotoboy2 is not online. textartotoboy2
Joined: 24 Jul 2012
Total Posts: 368
08 Aug 2016 08:37 PM
local Player = script.Parent.Parent.Parent.Parent.Parent
local DataStore = game:GetService("DataStoreService")
local DS1 = DataStore:GetDataStore("BuildData")
local Builds = game.workspace.ActiveParts:FindFirstChild(Player.Name.. "'s parts")
local Key = "Player_"..Player.UserId

script.Parent.MouseButton1Click:connect(function()

script.Parent.ClickSound:Play()

script.Parent.Parent.Parent.BuildData.LocalScript.Disabled = true
script.Parent.ClickSound:Play()

if Builds then
DS1:SetAsync(Key, Builds)
end

print("[DataStore] Sucessfully saved the build data from/to "..Key..".")--Player's Name is important!

script.Parent.Parent:TweenPosition(UDim2.new(0,325,0,-2000),"In","Quart",0.5)
script.Parent.Parent.Parent.BuildingData:TweenPosition(UDim2.new(0,325,0,-2000),"In","Quart",0.5)
script.Parent.Parent.Parent.BuildData.LocalScript.Disabled = false
end)

Did I do this correctly? It's supposed to be a script that saves the player's build. There were no errors in the output when I press the button.
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • 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