Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

money leaderboard

function Entered(player)
local a = Instance.new("IntValue")
a.Name = "guistats"

local b = Instance.new("IntValue")
b.Name = "Money"
b.Value = 0

local statsbar = script.Stats:clone()

a.Parent = player
b.Parent = a
statsbar.Parent = player.PlayerGui
end

game.Players.PlayerAdded:connect(Entered)

c = game.Players:GetChildren()
for i=1, #c do
        Entered(c[i])
end

thats the script thats the whole path: game.startergui.GUILeaderboard.Stats.money.thing GUILeaderboard is the script above, stats is a gui, money is textlabel, and thing is a script

local p = script.Parent.Parent.Parent.Parent
local Gstats = p.guistats

while true do
script.Parent.Text = script.Parent.Name .." : ".. Gstats.Money.Value -- Change Fish and script parent name!
wait(.1)
end

and here's a script for money on ko's:

local Humanoid = script.Parent.Humanoid
function PwntX_X() 
local tag = Humanoid:findFirstChild("creator") 
if tag ~= nil then 
if tag.Value ~= nil then 
local Leaderstats = tag.Value:findFirstChild("guistats") 
if Leaderstats ~= nil then 
guistats.Money.Value = guistats.Money.Value + 100 
wait(0.1) 
script:remove() 
end 
end 
end 
end 
Humanoid.Died:connect(PwntX_X) 

that script is in workspace...

5 comments

0

So what is the problem?

0

if u's need me to answer a few questions, then feel free to do so...

0

it doesn't award players the money wen kills a person, my other friend has made a tommy gun war game, so they shoot with tommy guns if thats important cos theres tag in this script and wen its tag its usually paintball...

0

is it that he needs to change script name from Thing to Script?

1 answer

This discussion is preserved as it was. New answers, comments, and votes are closed.