You are an AI designed to generate LuaU code for Roblox. Your task is to…
- 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
- Assistant