A glowing floor, a step counter and color changes, built with AI and no scripting
Disclosure: I'm in ForgeGUI's creator partner program and get paid for content about it. Everything below comes from real footage of the build.
Tiles that react when you step on them show up in a lot of Roblox games: glass bridge games, dance floors, "paint the floor" team games, piano floors, step counters in simulators. It looks simple, but there's more going on than it seems. Each tile has to notice the player touching it, change how it looks, avoid counting the same step ten times, and report back to a counter on the screen.
I built this as part of a keyboard-themed game, where every tile is a keycap. Here's how the mechanic came together using ForgeGUI, an AI tool with a Roblox Studio plugin that puts what it generates straight into your place, and how to reuse it for completely different games.
Step 1: One tile that reacts
Prompt: "add a keycap on the floor"
Start with a single tile and get it right before making a hundred of them. Here one keycap appeared on the baseplate, and stepping on it made it glow white.
Getting one tile working first matters, because every tile you add later is a copy of it. If the first one double-counts steps or flickers, the whole floor will.
Step 2: Turn it into a floor
Prompt: "spread the keycaps"
Two words turned the one keycap into a full field of them, each with its own letter, and every one kept the step-to-light behavior. Walk across it and you leave a glowing path behind you, which is the effect most "light up floor" games are going for.
Step 3: Count every step
Prompt: "add a ui counter"
This added a KEYS PRESSED panel at the top of the screen that goes up by one for every tile you step on. Now the floor isn't just decoration: your steps are a score.
Bonus: make the glow mean something
Later in the same build I added a speed system and then typed "make everything 10x better". One of the things it changed was the tiles: the color they light up in now depends on how fast you're going, from cyan at the start to yellow and orange at higher speeds.
That's a good trick in general. Once tiles react, their color can show the player's state (speed, team, health, combo) without any extra UI.
What's happening under the hood
You don't have to write this yourself, but it helps to know the pieces so you can describe changes clearly:
- Touched event. Each tile listens for something touching it and checks whether it's part of a player's character.
- Debounce. A character touches a tile many times per second while standing on it. A short cooldown per tile (or a "has this tile already been counted" flag) stops one step from counting as ten.
- Changing the look. Lighting up is usually switching the tile's Material to Neon and changing its Color, sometimes with a tween so it fades instead of snapping.
- The counter. Each new step adds 1 to a value for that player (often in leaderstats), and the on-screen panel updates when that value changes.
If something feels off after a prompt, those four words are what to mention. "The counter goes up too fast when I stand still" is a debounce problem, and saying so gets a better fix than "the counter is broken".
Ideas for using this mechanic in a real game
The same three prompts work as a starting point for a lot of game types. Swap the keycap and change what a step means:
- Glass bridge: some tiles break when touched instead of lighting up.
- Paint the floor: tiles light up in your team's color, and the team with the most tiles wins the round.
- Piano floor: each tile plays a note when you step on it.
- Floor is lava: tiles you've stepped on turn red and fall after a few seconds, so you can't go back.
- Step simulator: steps become currency you spend on upgrades.
Add one change per prompt. "Make some tiles break when I step on them" is a great second prompt for a glass bridge game. Asking for the whole game at once makes it much harder to tell which part went wrong.
Quick answers
How do you make a part light up when touched in Roblox?
Listen for the part's Touched event, check that a player touched it, then change its Material to Neon and its Color. In this build, the prompt "add a keycap on the floor" produced a tile that already did this.
How do you stop a touch from counting more than once?
Use a debounce: a short cooldown or a flag per tile so repeated touches from the same step are ignored.
Can you build this without scripting?
Yes. The tile, the floor, the glow and the step counter in this build all came from typed prompts.
The full five-prompt game this came from, a +1 Speed keyboard runner, is here: How to Make +1 Speed Keyboard Escape in Roblox With AI. Watch the short version on TikTok: @ash.robloxdev. Try it at forgegui.com.





Top comments (0)