Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

money leaderboard

Asked by 10 years ago
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...

0
So what is the problem? GoldenPhysics 474 — 10y
0
if u's need me to answer a few questions, then feel free to do so... LokHsuLi 10 — 10y
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... LokHsuLi 10 — 10y
0
is it that he needs to change script name from Thing to Script? LokHsuLi 10 — 10y

1 answer

Log in to vote
0
Answered by 10 years ago

so could anyone help?

Ad

Answer this question