How to make a leaderstat in Roblox Studio!
In todays video, i show you how to make a leaderstat for your roblox game. enjoy! (:
script:
------------------------------------------------------------------
game.Players.PlayerAdded:Connect(function(player)
local leaderstats = Instance.new("Folder")
leaderstats.Name = "leaderstats"
leaderstats.Parent = player
local Coin = Instance.new("IntValue")
Coin.Name = "Cash" -- Change this to what you want the leaderstat name to be
Coin.Value = 0
Coin.Parent = leaderstats
end)
--------------------------------------------------------------------
Other Videos By ScriptyDev
Other Statistics
Roblox Statistics For ScriptyDev
Currently, ScriptyDev has 20,173 views for Roblox across 46 videos. Less than an hour worth of Roblox videos were uploaded to his channel, or 7.06% of the total watchable video on ScriptyDev's YouTube channel.