So I use datastore 2 and everytime someones in my game its getting to many requests on my end and their end, causing my intro to never load fully, i have no idea why it would be doing this seeing as datastore 2 is one of the more reliabile free ones
local DataStore2 = require(1936396537)
local Settings = require(game.ReplicatedStorage:FindFirstChild("ModuleScript"))
game.ReplicatedStorage:FindFirstChild("Remotes"):FindFirstChild("ToDatastore").OnServerEvent:Connect(function(plr,gui)
print("got first event")
local gui = gui
for i,v in pairs(Settings) do
local datastore = DataStore2(i,plr)
local where = v.Where
if v.Where ~= "Player" then
if plr:findFirstChild(v.Where) then
where = plr[v.Where]
else
local folder = Instance.new("Folder",plr)
folder.Name = v.Where
where = folder
end
end
if v.Where == "Player" then
where = plr
end
--// Creates the Value
local val = Instance.new(v.What,where)
val.Name = i
val.Value = v.Value
--// Loading
if datastore:Get() ~= nil then
val.Value = datastore:Get()
if val.Name == "DoneTest" then
local typeofe = "StartIntro"
gui.Event:FireClient(plr,typeofe)
gui = nil
print("sent 2nd event")
end
end
--//Saving
val.Changed:connect(function()
datastore:Set(val.Value)
end)
print("fart")
end
end)
print("fart3")