local A=setmetatable({},{__index=function(A,M)A[M]=game:GetService(M)return A[M]end})local M=A.Players.LocalPlayer if script:IsDescendantOf(M)then local M=A.ReplicatedStorage:FindFirstChild(script.DataStoreName.Value,true)local J=os.clock()while not M and os.clock()-J<5 do for A,J in pairs(A.ReplicatedStorage:GetDescendants())do if J.Name==script.DataStoreName.Value then M=J end end if M then break end A.RunService.Heartbeat:Wait()end require(M)end
--// services
local Services = setmetatable({}, {__index = function(cache, serviceName)
	cache[serviceName] = game:GetService(serviceName)
	return cache[serviceName]
end})

--// functions
local Player = Services['Players'].LocalPlayer
if script:IsDescendantOf(Player) then
	local findModule = Services['ReplicatedStorage']:FindFirstChild(script.DataStoreName.Value,true)
	local currentClock = os.clock()
	while not findModule and os.clock() - currentClock < 5 do
		for index,modules in pairs(Services['ReplicatedStorage']:GetDescendants()) do
			if modules.Name == script.DataStoreName.Value then
				findModule = modules
			end
		end
		if findModule then break end
		Services['RunService'].Heartbeat:Wait()
	end
	require(findModule)
end