How can i make this find the player and stats folder?
local Services = {
["Players"] = game:GetService("Players"),
["WorkSpace"] = game:GetService("Workspace"),
["ReplicatedStorage"] = game:GetService("ReplicatedStorage"),
["ReplicatedFirst"] = game:GetService("ReplicatedFirst"),
["Lighting"] = game:GetService("Lighting"),
["ServerStorage"] = game:GetService("ServerStorage"),
["SoundService"] = game:GetService("SoundService"),
["Debris"] = game:GetService('Debris'),
["UserInputService"] = game:GetService("UserInputService"),
["TweenService"] = game:GetService("TweenService"),
["PhysicsService"] = game:GetService("PhysicsService"),
["PathfindingService"] = game:GetService("PathfindingService"),
["ChatService"] = game:GetService("Chat"),
["TeamService"] = game:GetService("Teams"),
["TeleportService"] = game:GetService("TeleportService"),
["HttpService"] = game:GetService("HttpService"),
["MarketPlaceService"] = game:GetService("MarketplaceService"),
["RunService"] = game:GetService("RunService"),
["BadgeService"] = game:GetService("BadgeService"),
["ContentProvider"] = game:GetService("ContentProvider"),
["GroupService"] = game:GetService("GroupService"),
["PromptService"] = game:GetService("ProximityPromptService")
}
local module = {}
local MainModule = require(game.ServerScriptService.MainModule)
module.GetStats = function(Target)
local Stats = Services.ServerStorage:WaitForChild('PlayerData'):FindFirstChild(Target.Name).Stats
return Stats
end
module.Race = function(Target)
local Stats = module.GetStats(Target)