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 ScriptMaster
Other Statistics
Roblox Statistics For ScriptMaster
Currently, ScriptMaster has 21,386 views for Roblox across 46 videos. Less than an hour worth of Roblox videos were uploaded to his channel, roughly 7.06% of the content that ScriptMaster has uploaded to YouTube.