local data = game:GetService("DataStoreService")
local option = data:GetDataStore("option")
local userid = game.Players.LocalPlayer.UserId
local option1 = require(script.Parent.Frame.High.LocalScript)
local option2 = require(script.Parent.Frame.Low.LocalScript)
local setsuccess, errormessage = pcall(function()
option:SetAsync(userid, option1 or option2)
end)
if not setsuccess then
warn(errormessage)
end
local getsuccess, option_success = pcall(function()
return option:GetAsync(userid)
end)
if getsuccess then
print(option_success)
end
Hi, could you please help me make this script save the graphics option? Thank you.