Skip to content
The Chat Archive
claude-sonnet-4-20250514· Anthropic LMArena Human Preference 140K

how to do step 2

  1. User

    how to do step 2

  2. Assistant

    Here's how to do Step 2: Script the cinematic in Roblox Studio.

    1. Create the Script:

    • In Roblox Studio, look for the "Explorer" window (usually on the right side)
    • Find "ServerScriptService" in the Explorer
    • Right-click on "ServerScriptService"
    • Select "Insert Object" > "Script"
    • A new script will appear. Double-click it to open the script editor

    2. Write the Basic Cinematic Script: Replace the default code in the script with this:

    -- Cinematic Script for Rejection Scene
    local Players = game:GetService("Players")
    local TweenService = game:GetService("TweenService")
    local RunService = game:GetService("RunService")
    
    -- Wait for a player to join
    local player = Players.PlayerAdded:Wait()
    local character = player.CharacterAdded:Wait()
    local humanoid = character:WaitForChild("Humanoid")
    local rootPart = character:WaitForChild("HumanoidRootPart")
    
    -- Camera setup
    local camera = workspace.CurrentCamera
    camera.CameraType = Enum.CameraType.Scriptable
    
    -- Positions (adjust these to match your scene)
    local insideHousePosition = CFrame.new(0, 5, 0) -- Inside the house
    local doorwayPosition = CFrame.new(0, 5, 10) -- At the doorway
    local outsidePosition = CFrame.new(0, 5, 20) -- Outside the house
    local cameraPosition1 = CFrame.new(5, 7, 5) -- Camera angle 1
    local cameraPosition2 = CFrame.new(0, 7, 15) -- Camera angle 2
    
    -- Function to move camera smoothly
    function moveCamera(targetCFrame, duration)
        local tweenInfo = TweenInfo.new(duration, Enum.EasingStyle.Quad, Enum.EasingDirection.InOut)
        local tween = TweenService:Create(camera, tweenInfo, {CFrame = targetCFrame})
        tween:Play()
        tween.Completed:Wait()
    end
    
    -- Function to move character smoothly
    function moveCharacter(targetCFrame, duration)
        local tweenInfo = TweenInfo.new(duration, Enum.EasingStyle.Linear, Enum.EasingDirection.InOut)
        local tween = TweenService:Create(rootPart, tweenInfo, {CFrame = targetCFrame})
        tween:Play()
        tween.Completed:Wait()
    end
    
    -- Function to display text on screen
    function showText(text, duration)
        local screenGui = Instance.new("ScreenGui")
        screenGui.Parent = player.PlayerGui
        
        local textLabel = Instance.new("TextLabel")
        textLabel.Parent = screenGui
        textLabel.Size = UDim2.new(1, 0, 0.2, 0)
        textLabel.Position = UDim2.new(0, 0, 0.8, 0)
        textLabel.BackgroundTransparency = 1
        textLabel.Text = text
        textLabel.TextColor3 = Color3.new(1, 1, 1)
        textLabel.TextScaled = true
        textLabel.Font = Enum.Font.SourceSansBold
        
        wait(duration)
        screenGui:Destroy()
    end
    
    -- Main cinematic function
    function playCinematic()
        print("Starting cinematic...")
        
        -- Scene 1: Character inside house, parents rejecting
        rootPart.CFrame = insideHousePosition
        camera.CFrame = cameraPosition1
        
        showText("Son: Mom, Dad, I need to tell you something important...", 3)
        wait(1)
        
        showText("Parents: We don't want to hear it. You're a disappointment.", 3)
        wait(1)
        
        -- Scene 2: Character gets emotional
        showText("Son: But please, just listen to me...", 3)
        wait(1)
        
        showText("Parents: No! We've had enough. Pack your things and leave!", 4)
        wait(1)
        
        -- Scene 3: Character moves toward door
        moveCamera(cameraPosition2, 2)
        showText("Son: I can't believe this is happening...", 3)
        
        -- Move character to doorway
        moveCharacter(doorwayPosition, 3)
        wait(1)
        
        -- Scene 4: Character exits house
        showText("Parents: Don't come back until you've learned some respect!", 3)
        moveCharacter(outsidePosition, 4)
        
        -- Final scene
        showText("The son walked away, heartbroken and alone...", 4)
        wait(2)
        
        -- Reset camera
        camera.CameraType = Enum.CameraType.Custom
        print("Cinematic finished.")
    end
    
    -- Start the cinematic after a short delay
    wait(3)
    playCinematic()
    

    3. Adjust the Positions: You'll need to modify the position values in the script to match your actual scene:

    • insideHousePosition: Where the character starts inside the house
    • doorwayPosition: Position at the house entrance
    • outsidePosition: Where the character ends up outside
    • cameraPosition1 and cameraPosition2: Camera angles for different scenes

    To find the right coordinates:

    • Move your character to where you want them to be
    • In the Properties window, look at the character's "HumanoidRootPart" and note the Position values (X, Y, Z)
    • Use these numbers in your CFrame.new() functions

    4. Test the Script:

    • Click the "Play" button (green triangle) in Roblox Studio
    • The cinematic should start automatically after 3 seconds
    • If something doesn't work, check the "Output" window for error messages

    5. Fine-tune:

    • Adjust the wait() times to make dialogue feel natural
    • Modify the movement durations in moveCharacter() and moveCamera() calls
    • Change the text to match your story
    • Adjust camera positions for better angles

    This script creates a basic cinematic with camera movements, character movement, and on-screen text dialogue. You can expand it by adding sound effects, more complex animations, or additional scenes.

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