Skip to content
TheChatArchiveThe Chat Archive
Googlegemma-3-27b-it· GoogleHugging Face LMArena Human Preference 140K

I WANT TO MAKE A ROBLOX GAME BUT I CANT SCRIPT FOR ANYTHING SO CAN YOU DO THE SRCIPTING

From a Chatbot Arena battleThe same person sent this prompt to two anonymous models at once. Compare it with Mistralmistral-small-3.1-24b-instruct-2503’s answer.
  1. User

    I WANT TO MAKE A ROBLOX GAME BUT I CANT SCRIPT FOR ANYTHING SO CAN YOU DO THE SRCIPTING

  2. Google Assistant

    Okay, I can definitely help you with scripting for your Roblox game! However, "scripting the whole game" is a huge task. It's not something I can do in a single response. It's a collaborative process. I'll need you to tell me what kind of game you want to make, and then we'll break it down into smaller, manageable scripting tasks.

    Here's how we'll approach this. I'll give you a framework, then ask you questions, and then provide scripts based on your answers. I'll also explain the scripts so you can learn.

    1. Game Concept - Let's Start Big Picture

    First, tell me about your game. Be as specific as possible. Consider these questions:

    • What is the genre of your game? (e.g., Obby, Tycoon, Simulator, RPG, Fighting, Puzzle, Horror, etc.)
    • What is the main goal of the game? (e.g., Reach the end of an obstacle course, build a successful business, become the strongest warrior, solve a mystery, etc.)
    • What are the key features of your game? (e.g., Jumping, collecting items, fighting enemies, building structures, interacting with NPCs, etc.)
    • What is the overall theme or setting? (e.g., Medieval fantasy, futuristic sci-fi, modern city, spooky haunted house, etc.)
    • Are there any games on Roblox that are similar to what you want to make? (This helps me understand your vision.)
    • What is your experience level with Roblox Studio? (Have you built anything yet? Are you familiar with the interface?)

    2. Breaking Down the Tasks

    Once we have a game concept, we'll break it down into smaller scripting tasks. For example, if you're making an Obby:

    • Movement: Basic player movement (walking, jumping).
    • Checkpoints: Saving player progress.
    • Obstacles: Moving platforms, lasers, falling blocks, etc.
    • Win Condition: Detecting when the player reaches the end.
    • UI: Displaying messages or a timer.

    3. Scripting and Explanation

    I'll provide you with the Lua scripts for each task. I'll also explain what the script does, line by line, so you can understand how it works. I'll try to use clear and concise code, and I'll comment the code to make it easier to follow.

    4. Iteration and Refinement

    We'll go back and forth. You'll test the scripts in your game, tell me what works and what doesn't, and I'll refine the scripts based on your feedback.

    Let's start with a very simple example to get the ball rolling.

    Example: Making a Part Change Color When Touched

    This is a basic script that demonstrates how to detect when a player touches a part and then change the part's color.

    -- Get a reference to the part
    local part = script.Parent
    
    -- Function to run when something touches the part
    local function onTouch(otherPart)
      -- Check if the touching object is a player's character
      local player = game.Players:GetPlayerFromCharacter(otherPart.Parent)
      if player then
        -- Change the part's color to red
        part.BrickColor = BrickColor.new("Really red")
        print("Player touched the part!") -- Print a message to the output
      end
    end
    
    -- Connect the touch event to the onTouch function
    part.Touched:Connect(onTouch)
    

    How to use this script:

    1. Create a Part: In Roblox Studio, create a Part in your workspace.
    2. Insert a Script: Right-click on the Part in the Explorer window and select "Insert Object" -> "Script".
    3. Paste the Code: Copy and paste the code above into the Script.
    4. Test: Run the game. When your player touches the part, it should turn red, and you should see "Player touched the part!" in the Output window (View -> Output).

    Explanation:

    • local part = script.Parent: This line gets a reference to the Part that the script is inside of. script.Parent refers to the object that contains the script.
    • local function onTouch(otherPart): This defines a function called onTouch. This function will be called whenever something touches the part. otherPart is the part that touched the original part.
    • local player = game.Players:GetPlayerFromCharacter(otherPart.Parent): This line tries to find the player who touched the part. It gets the character model of the touching object (otherPart.Parent) and then uses game.Players:GetPlayerFromCharacter() to find the corresponding player object.
    • if player then: This checks if a player was found. If player is not nil (meaning a player was found), the code inside the if block will be executed.
    • part.BrickColor = BrickColor.new("Really red"): This line changes the color of the part to red.
    • print("Player touched the part!"): This line prints a message to the Output window. This is useful for debugging.
    • part.Touched:Connect(onTouch): This line connects the Touched event of the part to the onTouch function. This means that whenever the part is touched, the onTouch function will be called.

    Now, let's get back to your game.

    Please tell me about your game idea! Start with the questions in section 1. The more detail you provide, the better I can help you. Don't worry if you don't have all the answers yet. We can refine the idea as we go. Let's start with the genre and the main goal. What kind of game are you thinking of making?

  3. User

    i want to make a rust like game but with the roblox game like booga i want it like rust but mixxed with booga booga

  4. Google Assistant

    Okay, a Rust-like game mixed with Booga Booga! That's a cool concept. It's ambitious, but we can definitely break it down. That gives me a good starting point. So, we're aiming for a survival game with base building, resource gathering, and potentially PvP, but with a more accessible and potentially faster-paced feel like Booga Booga.

    Let's clarify some things to narrow down the scope for scripting. I'll ask questions, and you can answer as much or as little as you're comfortable with right now. We can always add more features later.

    1. Core Gameplay Loop:

    • Resource Gathering: What kinds of resources will players gather? (e.g., wood, stone, metal, food, etc.) How will they gather them? (e.g., chopping trees, mining rocks, farming)
    • Base Building: How will base building work? Will players place individual blocks, or will there be pre-made structures? What materials can bases be built from?
    • Combat: Will there be PvP? If so, how will it work? (e.g., guns, melee weapons, bows and arrows) Will there be AI enemies (e.g., animals, monsters)?
    • Progression: How will players progress in the game? (e.g., leveling up, unlocking new crafting recipes, improving their base)
    • Death/Respawn: What happens when a player dies? (e.g., lose all items, respawn at a starting location, respawn near their base)

    2. Booga Booga Influence:

    • Fast-Paced vs. Slow-Paced: Booga Booga is relatively fast-paced. Do you want your game to be similar in terms of speed of progression and combat, or more like the slower, more deliberate pace of Rust?
    • Simplicity: Booga Booga is simpler than Rust. Do you want to simplify some of the Rust mechanics to make the game more accessible?
    • Crafting System: Do you want a crafting system similar to Booga Booga's, or something more complex?
    • Map Size/Player Count: Roughly how large do you envision the map being, and how many players should it support? (This impacts performance and server requirements.)

    3. Initial Focus - Let's Start Small

    To get started, let's focus on a very basic core mechanic. I suggest we start with resource gathering. Specifically, let's implement:

    • A tree that players can chop down.
    • When chopped down, the tree drops wood.
    • Players can pick up the wood.

    This will involve:

    • Creating a tree model.
    • Scripting the tree to detect when a player hits it (using Touched event).
    • Scripting the tree to destroy itself and spawn wood when hit.
    • Creating a wood model.
    • Scripting the wood to be pickable up by players.

    For now, let's focus on the first question: Resource Gathering. What kinds of resources will players gather, and how will they gather them? Just a basic list is fine for now. For example:

    • Wood: Chopping trees with an axe.
    • Stone: Mining rocks with a pickaxe.
    • Food: Gathering berries from bushes.

    Let's start there. Don't feel overwhelmed! We'll take it one step at a time. Tell me about the resources, and we'll build from there.

Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.