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

How to hide a Leaderboard stats without removing it? [closed]

Asked by 9 years ago

How to hide a Leaderboard stats without removing it?

Thanks

function oa(object)
local player = game.Players:playerFromCharacter(object)
if player ~= nil then
local ls = player.leaderstats
local sl = game.Workspace:FindFirstChild(ls.CodeCracked.Value)
print("gah")
object.Torso.CFrame = object.Torso.CFrame + Vector3.new(0,3,0)
wait()
object.Torso.CFrame = sl.CFrame + Vector3.new(0,3,0)
end end

function oe(object)
if object.className == "Player" then
local ack = Instance.new("IntValue")
ack.Name = "leaderstats"
local ack2 = Instance.new("IntValue")
ack2.Name = "CodeCracked"
ack2.Value = 1
ack2.Parent = ack
ack.Parent = object
local cash = Instance.new("IntValue")
cash.Parent = ack.Parent.Visible == false -- This line isn't working
cash.Name = "Credits"
cash.Value = 0
local HighScor = Instance.new("IntValue")
HighScor.Parent = ack
HighScor.Name = "HighScore"
HighScor.Value = 0
local NorSco = Instance.new("IntValue")
NorSco.Parent = ack
NorSco.Name = "Score"
NorSco.Value = 0
while true do
    wait(120)
    cash.Value = cash.Value + 1
end
end end

game.Players.ChildAdded:connect(oe)
game.Workspace.ChildAdded:connect(oa)
2
You can: 1.) Disable the leaderboard coregui 2.) Move/Destroy the leaderstats inside the player 3.) Rename leaderstats so that it no longer is called that VariadicFunction 335 — 9y

Locked by Shawnyg and User#5978

This question has been locked to preserve its current state and prevent spam and unwanted comments and answers.

Why was this question closed?