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

How can I make this script edit the two LeaderBoards correctly?

local LeaderBoard1 = game.Workspace. LeaderBoard1
local LeaderBoard = game.Workspace.LeaderBoard
LeaderBoard1.Disabled = true
LeaderBoard.Disabled = false
if player then  -- What do I put before the then that makes it so if a player has bought a developer product it makes the next part function 
LeaderBoard1.Disabled = false
LeaderBoard.Disabled = true
else
LeaderBoard1.Disabled = true
LeaderBoard.Disabled = false
end

7 comments

0

Sorry Its a bit messy.

0

I really need this answered though for my game.

0

Please anyone?

0

Could you put the code into the Code Block? Just click edit, press the Lua button, and paste the code in there. That will help people quite a bit in helping to solve your problem.

0

Okay.

0

I made it so its in code looking form. Now can anyone help?

0

I really need an answer. Can someone edit this to make it work?

1 answer

Okay a better title is How can I enable and disable different LeaderBoards depending on if a player has bought a developer product? My use for this is I have a developer product that will give you double gold for your kills. So LeaderBoard1 makes it so your gold is 2 for every kill. I really an answer because I have attempted to do this many times.

3 comments

0

Come on! Please I need an answer

0

I hope to have an answer by tomorrow.

0

Come on! I need one!

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