I tried to make a Folder where it will store all player Data such as Level, InGame, etc
But It doesnt work
Here is what I wrote
local Players = game:GetService("Players") Players.PlayerAdded:Connect(function(Player) -- Create PlayerData Folder local PlayerDataF = Instance.new("Folder") PlayerDataF.Name = Player.Name PlayerDataF.Parent = script.Parent end)
Alright you made a simple error that is a common mistake some scripters do. so heres your script
local Players = game:GetService("Players") local playerdata = game.ReplicatedStorage:WaitForChild("PlayerData") Players.PlayerAdded:Connect(function(Player) -- Create PlayerData Folder local PlayerDataF = Instance.new("Folder") PlayerDataF.Name = Player.Name PlayerDataF.Parent = playerdata end)
Alright I changed it up to how you want it. Accept if works or helps