I have a start and end, and I have a gui that looks like this
but I want to know how to script it.
When responding please include:
- Where to put the script
- Type of script
I have a start and end, and I have a gui that looks like this
but I want to know how to script it.
When responding please include:
I’m a bit confused on what you’re asking. Are you asking for someone to create a script and where to put it, or are you asking for some kind of racing game tutorial?
The developer forum isn’t for requesting scripts to be made.
I want to know how to script it
As in how do I make the start and end be recorded on the gui
When the start/end is touched (i’m guessing it’s an invisible, CanCollide = false
brick) you can send a remote event to the server. Send as much information as you need for the client to know how they did. Custom Events and Callbacks | Documentation - Roblox Creator Hub
For the drag racing timers I made ill go through exactly how I did it.
I start with A localscript in startercharacterscripts that held a couple of touched connections for various parts of the track to get split times (60 foot, 330 foot, 1/8th, etc) So when the rootpart of the character was touched (since you don’t need to ask more of the computer for a touched event on say the tire / wheel of a car, and it’s also guaranteed to work since every avatar has a HumanoidRootPart) so when it was touched it took the time at which they touched the brick (os.clock) and subtracted that from the time they started the race again using (os.clock) and than with some time version I outputed it.
So after all that was handled in the localscript I sent it over to the server just with a basic remote event and did the outputting from there, but that is how you effectively record times for a (“racing” / “timing”) system. Hope that helps ya out.