Simple enough, I still do not know how to make it display a word instead.
Script:
Script
local Players = game:GetService("Players")
local function leaderboardSetup(player)
local leaderstats = Instance.new("Folder")
leaderstats.Name = "leaderstats"
leaderstats.Parent = player
local Punches = Instance.new("IntValue")
Punches.Name = "smacked"
Punches.Value = 0
Punches.Parent = leaderstats
local Ball = Instance.new("IntValue")
Ball.Name = "Ball"
Ball.Value = nil
Ball.Parent = leaderstats
end
Players.PlayerAdded:Connect(leaderboardSetup)
Could you elaborate more cus there is a lack of context here.
In some games, it would show what type of tool you are holding in the leaderboard instead of numbers
DexterBloxxer
(ăă©ăŻă·ă±ă€ăăă)
July 11, 2023, 7:21am
#4
if you want to display a word instead then i suggest you to use "StringValue"
Itâd be:
local StringStat = Instance.new("StringValue", leaderstats)
StringStat.Name = "NAME"
StringStat.Value = "TEXT_HERE"
I tried using âBall.StringValueâ, but it didnât seem to work. How would I be able to use StringValue
?
This one gives a new error⊠"StringValue is not a valid member of StringValue âBallâ and âBall is not a valid member of Folder âPlayers.BlueClothesPerson.leaderstatsââ
SHlAWASE
(Shiawase)
July 11, 2023, 9:37am
#8
local Players = game:GetService("Players")
local function leaderboardSetup(player)
local leaderstats = Instance.new("Folder")
leaderstats.Name = "leaderstats"
leaderstats.Parent = player
local Punches = Instance.new("IntValue")
Punches.Name = "smacked"
Punches.Value = 0
Punches.Parent = leaderstats
local Ball = Instance.new("StringValue")
Ball.Name = "Ball"
Ball.Value = "texthere"
Ball.Parent = leaderstats
end
Players.PlayerAdded:Connect(leaderboardSetup)
1 Like
Worked! Now itâs time to figure out what this isâŠ
system
(system)
Closed
July 25, 2023, 9:48am
#10
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.