Skip to content
The Chat Archive
gpt-4o-mini-2024-07-18· OpenAI 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: esp Ai: local Players = game:GetService("Players") local LocalPlayer = Players.LocalPlayer local Character = LocalPlayer.Character or LocalPlayer.CharacterAdded:Wait() local Mouse = LocalPlayer:GetMouse()

    local function createESP(part) local highlight = Instance.new("Highlight") highlight.Adornee = part highlight.FillColor = Color3.new(1, 0, 0) -- Red color highlight.FillTransparency = 0.5 highlight.OutlineColor = Color3.new(0, 0, 0) -- Black outline highlight.OutlineTransparency = 0.5 highlight.Parent = part end

    for _, player in ipairs(Players:GetPlayers()) do if player ~= LocalPlayer then player.CharacterAdded:Connect(function() for _, part in ipairs(player.Character:GetChildren()) do if part:IsA("BasePart") then createESP(part) end end end) if player.Character then for _, part in ipairs(player.Character:GetChildren()) do if part:IsA("BasePart") then createESP(part) end end end end end

    Players.PlayerAdded:Connect(function(player) player.CharacterAdded:Connect(function() for _, part in ipairs(player.Character:GetChildren()) do if part:IsA("BasePart") then createESP(part) end end end) end) User: add bones also, using drawing library User: add bones esp User: bones esp User: bone esp User: bone esp

  2. Assistant

    local Players = game:GetService("Players") local LocalPlayer = Players.LocalPlayer local Character = LocalPlayer.Character or LocalPlayer.CharacterAdded:Wait() local Mouse = LocalPlayer:GetMouse()

    local Drawing = Drawing or require(game:GetService("Drawings"))

    local function createESP(part) local highlight = Instance.new("Highlight") highlight.Adornee = part highlight.FillColor = Color3.new(1, 0, 0) -- Red color highlight.FillTransparency = 0.5 highlight.OutlineColor = Color3.new(0, 0, 0) -- Black outline highlight.OutlineTransparency = 0.5 highlight.Parent = part end

    local function drawBone(startPos, endPos) local line = Drawing.new("Line") line.From = startPos line.To = endPos line.Color = Color3.new(1, 1, 0) -- Yellow color for bones line.Thickness = 2 return line end

    local function updateBoneEsp(character) local leftArm = character:FindFirstChild("Left Arm") local rightArm = character:FindFirstChild("Right Arm") local leftLeg = character:FindFirstChild("Left Leg") local rightLeg = character:FindFirstChild("Right Leg") local head = character:FindFirstChild("Head")

    local bones = {}
    if leftArm and head then
        table.insert(bones, drawBone(head.Position, leftArm.Position))
    end
    if rightArm and head then
        table.insert(bones, drawBone(head.Position, rightArm.Position))
    end
    if leftLeg and head then
        table.insert(bones, drawBone(head.Position, leftLeg.Position))
    end
    if rightLeg and head then
        table.insert(bones, drawBone(head.Position, rightLeg.Position))
    end
    
    return bones
    

    end

    for _, player in ipairs(Players:GetPlayers()) do if player ~= LocalPlayer then player.CharacterAdded:Connect(function(newCharacter) for _, part in ipairs(newCharacter:GetChildren()) do if part:IsA("BasePart") then createESP(part) end end updateBoneEsp(newCharacter) end) if player.Character then for _, part in ipairs(player.Character:GetChildren()) do if part:IsA("BasePart") then createESP(part) end end updateBoneEsp(player.Character) end end end

    Players.PlayerAdded:Connect(function(player) player.CharacterAdded:Connect(function(newCharacter) for _, part in ipairs(newCharacter:GetChildren()) do if part:IsA("BasePart") then createESP(part) end end updateBoneEsp(newCharacter) end) end)