SwordfightTS is a Roblox game made with TS where players fight to have the highest timer and be on top of the leaderboard.
- Every player starts with a timer counting how long they’ve been alive.
- Players are armed with swords and can attack each other.
- Killing another player:
- You steal their timer and add it to your own.
- Their timer resets to 0.
- There’s a Safe Zone where players can’t fight — use it to regen, but don’t hide forever, your timer is paused!
This project is written in TypeScript and built using Roblox-TS.
It uses React, Reflex and Lapis, and the structure was heavily inspired by littensy/slither. Huge thanks to him ❤️
- Install Roblox-TS:
npm install -g roblox-ts- Compile the game:
rbxtsc- Build the rbxl:
rojo build default.project.json -o game.rbxl- Compile in watch mode:
rbxtsc -w- Sync using rojo:
rojo serveThis project is open source under the MIT License.