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

How do I create a working Display Score UI?

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

✓ Accepted answer

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

1 comment

0

I’ll try it

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