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...