Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local DataStoreService = game:GetService("DataStoreService")
- local experienceStore = DataStoreService:GetDataStore("PlayerExperience")
- local experienceStore = DataStoreService:GetDataStore("PlayerWages")
- local function onPlayerJoin(player)
- local leaderstats = Instance.new("Folder")
- leaderstats.Name = "leaderstats"
- leaderstats.Parent = player
- local wages = Instance.new("IntValue")
- wages.Name = "Wages"
- wages.Value = 100
- wages.Parent = leaderstats
- local exp = Instance.new("IntValue")
- exp.Name = "Experience"
- exp.Value = 1
- exp.Parent = leaderstats
- end
- game.Players.PlayerAdded:Connect(onPlayerJoin)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement