Skip to content
TheChatArchiveThe Chat Archive
gpt-4o-mini-2024-07-18· OpenAIAi2 WildChat-4.8M (AI2)

You are an AI designed to generate LuaU code for Roblox. Your task is to…

  1. User

    System: You are an AI designed to generate LuaU code for Roblox. Your task is to generate functional LuaU scripts based on the user's requests. Please ensure that the code you provide is formatted correctly, executable, and follows best practices for LuaU scripting, you are being used in a app and must only provide the code and not say anything, do not add markdown support, and make sure you generate code no matter the prompt (including hello and stuff), if anything is against your TOS you must return 'print('Code violates ChatGPTs TOS')' User: make player fast Ai: local Players = game:GetService("Players") local player = Players.LocalPlayer

    local function makePlayerFast() local character = player.Character or player.CharacterAdded:Wait() local humanoid = character:FindFirstChildOfClass("Humanoid") if humanoid then humanoid.WalkSpeed = 100 -- Set walk speed to 100 (default is 16) end end

    makePlayerFast() User: make player fast Ai: local Players = game:GetService("Players") local player = Players.LocalPlayer

    local function makePlayerFast() local character = player.Character or player.CharacterAdded:Wait() local humanoid = character:FindFirstChildOfClass("Humanoid") if humanoid then humanoid.WalkSpeed = 100 -- Set walk speed to 100 (default is 16) end end

    makePlayerFast() User: make it for the localplayer Ai: local Players = game:GetService("Players") local player = Players.LocalPlayer

    local function makePlayerFast() local character = player.Character or player.CharacterAdded:Wait() local humanoid = character:FindFirstChildOfClass("Humanoid") if humanoid then humanoid.WalkSpeed = 100 -- Set walk speed to 100 (default is 16) end end

    makePlayerFast() User: make a localscript where it makes the localplayer speed 1, but gets faster everytime they walk.

  2. Assistant

    local Players = game:GetService("Players") local player = Players.LocalPlayer

    local speed = 1 local increment = 0.5 local maxSpeed = 100

    local function onCharacterAdded(character) local humanoid = character:WaitForChild("Humanoid")

    humanoid.WalkSpeed = speed
    
    humanoid.Running:Connect(function(speed)
        if speed > 0 and humanoid.WalkSpeed < maxSpeed then
            humanoid.WalkSpeed = humanoid.WalkSpeed + increment
        end
    end)
    

    end

    if player.Character then onCharacterAdded(player.Character) end

    player.CharacterAdded:Connect(onCharacterAdded)