Game mechanics

A shared tag with AI prompts and code snippets

From workspace: Roblox

Team: AI Prompts

Total snippets: 7

Roblox

Game mechanics

7 snippets

Game mechanics - Update scoreboard

Add a script that deletes this and adds 100 to the players score. Add a script to show the player's score on the scoreboard.

Game mechanics - NPC patrolling

Add a script to make this NPC move slowly between startpart and endpart repeatedly. It should face the part and then move to it, then face the other part and move to it. If the player comes within 10 studs, turn the NPC red and make it chase the...

Game mechanics - Interactive NPC

This is an NPC. Add a prompt that lets the player interact with it. If the player interacts, have the NPC say "hello [player's name]" where player's name is the actual player's name, in a text pop up. Add a script that makes this npc always look...

Game mechanics - NPC lasers

Add a script that makes this shoot a laser using a long thin part that's blue and neon at the player if they're within 30 studs. Add a script to make this look towards and slowly move towards the closest player if they're within 50 studs. Only...

Game mechanics - Fire power up

Add a script that makes the player light on fire and jump 3 time as high if they press "q". The fire should be attached to the player and move with them. If they press "q" again, turn off the fire and reset the jump power.

Game mechanics - Set up a teams system and assign players

Add a script to make a system of teams (red, blue, green, yellow) and assign each player randomly to a team.

Game mechanics - Shoot fireballs that explode

Propel a fireball away from the player in the direction the player is facing when the player presses "e". Make the fireball explode when it hits something.