STAR · Scripting 2021

Roblox sword script that reports to Discord.

Role
Developer
Timeline
2021 - Oct 2023
Type
Scripting
Stack
  • Lua
  • Roblox API
  • Discord Webhooks
  • JSON

Overview

Roblox sword script that reports to Discord.

A Lua script for Roblox sword fights, and my first project built on webhooks and an outside API.

What I did

The work

Each run posts a Discord embed through a webhook with the player's profile, avatar, and current game.

A second webhook acts as silent notifications: with in-game alerts off, every keybind change reports to Discord instead of the screen.

Pulled the avatar from Roblox's thumbnails API and the game's name from its product info, then decoded the JSON into the embed.

Roblox had just moved its API to a new version with almost no documentation, so I worked out the endpoints and response formats myself.

Keybinds widen or narrow the sword's hit radius, toggle an autoclicker, and freeze the character in place.