I'm making a simulator and I would like to know how I can gain points or whatever you want to call it on the leaderboard like in Weight Lifting Simulator 2 or Ninja Assassin.
Follow these rules, or no one is going to help you. If you don't learn the basics, your game won't come out well.
First, you wanna learn what functions a tool has
http://wiki.roblox.com/index.php?title=API:Class/Tool/Activated
In this example, they used tool.Activated:Connect(function()
PLEASE NOTE THAT I AM NOT GOING TO HELP YOU IF YOUR USING FE
^ this is because you don't even know anything about tools, there is no point in FE yet.
and that is what you are going to use. Now assuming you have the tool and ready to code the tool:
Insert a LocalScript into tool;
Now start with the variables and lead into the function:
local Tool = script.Parent local plr = game.Players.LocalPlayer Tool.Activated:Connect(function() plr:WaitForChild('leaderstats').ObjectName.Value = plr:WaitForChild('leaderstats').ObjectName.Value + 1 end)
Now since you have not attempted to try, I assumed you have leaderstats, and then you can change the ObjectName
Make sure to follow the steps.
If this helped you, please Upvote and accept answer
-- Your Orange, BlackOrange3343
PS: If you didn't understand anything, I don't recommend even trying to make a game. Starter with the basics