Can someone help me with a script

t10
Joined 09/03/2020
Posts 20,623
12:46 AM 01/06/2023
so when you step on a brick it gives you a leaderboard rank

and how to make it so you spawn in with a certain tool


[Deleted125117]
Joined 22/07/2019
Posts 2,891
12:46 AM 01/06/2023
Do u got workshop?


t10
Joined 09/03/2020
Posts 20,623
12:47 AM 01/06/2023
Quote from [Deleted125117] , 12:46 AM 01/06/2023
Do u got workshop?
no im not rich


[Deleted125117]
Joined 22/07/2019
Posts 2,891
12:49 AM 01/06/2023
Quote from t10 , 12:47 AM 01/06/2023
Quote from [Deleted125117] , 12:46 AM 01/06/2023
Do u got workshop?

no im not rich
Then unless u hard hard hardddd use .js and understand coding language it's kinda impossible.


[Deleted125117]
Joined 22/07/2019
Posts 2,891
12:50 AM 01/06/2023
I'm sure a builder can give out one or make u one but my friends I can't give u cuz his games big


dargy
Joined 23/06/2019
Posts 4,820
03:41 PM 01/06/2023
Already responded to the tool one so I'll help with the leaderboard.

First of all we initialize the Team with new Team(name, color) and use Game.newTeam to set the team into the game.

Next, we find the teamBrick you want to enable touching and make a touching listener for that brick.

We then check if the player is already on the team and if not, set their team to the desired team and then when the server gives us a promise back that tells us when the action is done, we message the player to tell them that their team has changed.

https://gist.github.com/dragonismcode/ba4893c7271d14dee60e91638557d9d7

1