Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

How would I make this save?

I realise why this wont save, but dose anyone know how I can fix it?

local Gui = script.Parent
local Player = Gui.Parent.Parent.Parent
local Char = Player.Character
local part = game.Workspace:FindFirstChild("Part")
local Value1 = Player:findFirstChild("Save")

function onClicked()
if Value1 ~= nil then
Player:SaveNumber("Save", Value1) -- Its because it says Save Numbers and Im trying to save Blocks
end

	if game.Workspace.Part ~= nil then
	Instance.new("Folder", Player).Name = "Save"
	while wait() do
		wait()
		if game.Workspace.Part~= nil then
			game.Workspace.Part.Parent = Player.Save
		end
	end
end
end

Gui.MouseButton1Click:connect(onClicked)

1 answer

If it's an Instance then you need to use SaveInstance and LoadInstance.

This discussion is preserved as it was. New answers, comments, and votes are closed.