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

How do I gain leaderboard points by using a gear?

Asked by 6 years ago
Edited 6 years ago

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.

1 answer

Log in to vote
0
Answered by 6 years ago
  1. Try First
  2. Learn The Basics
  3. Search, Google, Roblox wiki before asking
  4. Explain in better detail

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

0
It didnt help and what I meant is like when you lift a weight in weight lifting simulator your strenght goes up on the leaderboard. MagicalJack1234 0 — 6y
0
That is exactly what I showed you. Your not getting anymore help. Either go learn the basics or don't try, I gave you exactly what you wanted but since you couldn't understand anything, If you understand some basics this might have helped. BlackOrange3343 2676 — 6y
Ad

Answer this question