I'm making a simulator game and I need to define a Number Value called Strength in a folder called leaderstats in a normal script and not a local script. How do I define a certain players leaderstats folder and Strength Number Value?
It's a simple as:
-------Server Script local Players = game:GetService("Players") Players.PlayerAdded:Connect(function(Player) ------Connect A function when A player Joins The Game if Player then local leaderstats = Instance.new("Folder", Player) ----Create a new Folder leaderstats.Name = "leaderstats"---- Give it a Name local NumberValue = Instance.new("NumberValue", leaderstats) -----Create a Value NumberValue.Name = "NumberValue" --- Give it a Name end end)