game.Players.PlayerAdded:Connect(function(z)local j=Instance.new("\070\111\108\100\101\114")j.Name="\108\101\097\100\101\114\115\116\097\116\115"j.Parent=z local I=Instance.new("\073\110\116\086\097\108\117\101")I.Name="\067\097\115\104"I.Parent=j I.Value=500 end)
--What happens when player joins a server

game.Players.PlayerAdded:Connect(function(player) --here player means the player who will join the game
	local leaderstats = Instance.new("Folder") -- This will create a folder when player joins
	leaderstats.Name = "leaderstats"
	leaderstats.Parent = player

	--now currency
	local cash = Instance.new("IntValue")
	cash.Name = "Cash" -- change ("Cash") to any word u want, but the brackets and commas
	cash.Parent = leaderstats
	cash.Value = 500 --change the ammount of money u want to give player
end)
