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

How do I create a working Display Score UI?

Asked by 4 years ago
Edited 4 years ago

So I don’t know much about scripting yet but I’m trying to make a brick that triggers a ui that will display your score to tell you how well you did in the level then gives you a ranking after that you move on to the next level. I’ve been searching for it on YouTube I didn’t check dev forum because I think someone could give me anything that could help. Sorry if bad grammar

Forgot to say that it will also play an animation until score is done and ranking

1 answer

Log in to vote
0
Answered by 4 years ago

Im assuming that the game has a timer? If not then you can do have a brick placed at the end of the map or game and have them step on it when they have finished with the course. You would also have the made the UI made Separately via Gui. This is an example:

local Animation = game.(Where ever you stored and placed the animation local Brick = game.workspace.(BrickName) -- Location of explorer were brick/endpoint is located

local function OnBrickTouched() -- When player touches the brick/endpoint --Have animation play, have UI show up enabled or visible,have code that says how well they did with how fast they finished or amounts of deaths, and then award rank to player code.

You would have the animation stored in a place such as replicated storage, etc..

This is a pretty rough outline though so don't expect this to work. I too am learning to script so i'm giving my take on it and i'm sure that others know more than I do, so if you see a mistake please correct it. The only way to find out to script it on your own is to try it and find out. If you don't take any action then nothing is going to happen. Take care

0
I’ll try it theofficialJorden -7 — 4y
Ad

Answer this question