Advertisement
kill21_2

esp модели

May 23rd, 2025 (edited)
32
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 8.78 KB | None | 0 0
  1. local Players = game:GetService("Players")
  2. local UserInputService = game:GetService("UserInputService")
  3.  
  4. local player = Players.LocalPlayer
  5. local gui = Instance.new("ScreenGui")
  6. gui.Name = "ESPGUI"
  7. gui.ResetOnSpawn = false
  8. gui.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
  9. gui.Parent = player:WaitForChild("PlayerGui")
  10.  
  11. -- Основной фрейм
  12. local mainFrame = Instance.new("Frame")
  13. mainFrame.Name = "MainFrame"
  14. mainFrame.Size = UDim2.new(0, 350, 0, 250)
  15. mainFrame.Position = UDim2.new(0.5, -175, 0.5, -125)
  16. mainFrame.AnchorPoint = Vector2.new(0.5, 0.5)
  17. mainFrame.BackgroundColor3 = Color3.fromRGB(18, 18, 18)
  18. mainFrame.BorderColor3 = Color3.fromRGB(75, 0, 130)
  19. mainFrame.BorderSizePixel = 2
  20. mainFrame.Parent = gui
  21.  
  22. -- Заголовок
  23. local title = Instance.new("TextLabel")
  24. title.Name = "Title"
  25. title.Size = UDim2.new(1, 0, 0, 40)
  26. title.Position = UDim2.new(0, 0, 0, 0)
  27. title.BackgroundColor3 = Color3.fromRGB(30, 0, 50)
  28. title.BorderSizePixel = 0
  29. title.Text = "OBJECT ESP"
  30. title.TextColor3 = Color3.fromRGB(200, 180, 255)
  31. title.Font = Enum.Font.GothamBold
  32. title.TextSize = 18
  33. title.Parent = mainFrame
  34.  
  35. -- Поле для ввода
  36. local inputBox = Instance.new("TextBox")
  37. inputBox.Name = "InputBox"
  38. inputBox.Size = UDim2.new(0.9, 0, 0, 35)
  39. inputBox.Position = UDim2.new(0.05, 0, 0.2, 0)
  40. inputBox.BackgroundColor3 = Color3.fromRGB(40, 40, 40)
  41. inputBox.BorderColor3 = Color3.fromRGB(100, 0, 180)
  42. inputBox.TextColor3 = Color3.fromRGB(220, 220, 220)
  43. inputBox.PlaceholderText = "Введите имя объекта..."
  44. inputBox.Font = Enum.Font.Gotham
  45. inputBox.TextSize = 14
  46. inputBox.Parent = mainFrame
  47.  
  48. -- Кнопка создания ESP
  49. local espButton = Instance.new("TextButton")
  50. espButton.Name = "ESPButton"
  51. espButton.Size = UDim2.new(0.9, 0, 0, 35)
  52. espButton.Position = UDim2.new(0.05, 0, 0.4, 0)
  53. espButton.BackgroundColor3 = Color3.fromRGB(80, 0, 120)
  54. espButton.BorderSizePixel = 0
  55. espButton.Text = "СОЗДАТЬ ESP"
  56. espButton.TextColor3 = Color3.fromRGB(255, 255, 255)
  57. espButton.Font = Enum.Font.GothamBold
  58. espButton.TextSize = 14
  59. espButton.Parent = mainFrame
  60.  
  61. -- Эффект при наведении на кнопку
  62. espButton.MouseEnter:Connect(function()
  63. espButton.BackgroundColor3 = Color3.fromRGB(120, 0, 180)
  64. end)
  65.  
  66. espButton.MouseLeave:Connect(function()
  67. espButton.BackgroundColor3 = Color3.fromRGB(80, 0, 120)
  68. end)
  69.  
  70. -- Кнопка копирования скрипта
  71. local copyScriptButton = Instance.new("TextButton")
  72. copyScriptButton.Name = "CopyScriptButton"
  73. copyScriptButton.Size = UDim2.new(0.9, 0, 0, 35)
  74. copyScriptButton.Position = UDim2.new(0.05, 0, 0.55, 0)
  75. copyScriptButton.BackgroundColor3 = Color3.fromRGB(50, 0, 80)
  76. copyScriptButton.BorderSizePixel = 0
  77. copyScriptButton.Text = "КОПИРОВАТЬ СКРИПТ ESP"
  78. copyScriptButton.TextColor3 = Color3.fromRGB(200, 180, 255)
  79. copyScriptButton.Font = Enum.Font.GothamBold
  80. copyScriptButton.TextSize = 14
  81. copyScriptButton.Parent = mainFrame
  82.  
  83. -- Эффект при наведении на кнопку
  84. copyScriptButton.MouseEnter:Connect(function()
  85. copyScriptButton.BackgroundColor3 = Color3.fromRGB(80, 0, 130)
  86. end)
  87.  
  88. copyScriptButton.MouseLeave:Connect(function()
  89. copyScriptButton.BackgroundColor3 = Color3.fromRGB(50, 0, 80)
  90. end)
  91.  
  92. -- Кнопка закрытия
  93. local closeButton = Instance.new("TextButton")
  94. closeButton.Name = "CloseButton"
  95. closeButton.Size = UDim2.new(0, 30, 0, 30)
  96. closeButton.Position = UDim2.new(1, -35, 0, 5)
  97. closeButton.BackgroundColor3 = Color3.fromRGB(200, 0, 0)
  98. closeButton.BorderSizePixel = 0
  99. closeButton.Text = "X"
  100. closeButton.TextColor3 = Color3.fromRGB(255, 255, 255)
  101. closeButton.Font = Enum.Font.GothamBold
  102. closeButton.TextSize = 16
  103. closeButton.Parent = mainFrame
  104.  
  105. -- Эффект при наведении на кнопку
  106. closeButton.MouseEnter:Connect(function()
  107. closeButton.BackgroundColor3 = Color3.fromRGB(255, 50, 50)
  108. end)
  109.  
  110. closeButton.MouseLeave:Connect(function()
  111. closeButton.BackgroundColor3 = Color3.fromRGB(200, 0, 0)
  112. end)
  113.  
  114. -- Функция создания ESP
  115. local function createESP(object, color)
  116. if not object then return end
  117.  
  118. local highlight = Instance.new("Highlight")
  119. highlight.Name = "ESP_Highlight"
  120. highlight.Adornee = object
  121. highlight.DepthMode = Enum.HighlightDepthMode.AlwaysOnTop
  122. highlight.FillColor = color or Color3.fromRGB(255, 0, 255)
  123. highlight.FillTransparency = 0.5
  124. highlight.OutlineColor = Color3.fromRGB(255, 255, 255)
  125. highlight.OutlineTransparency = 0
  126. highlight.Parent = object
  127.  
  128. return highlight
  129. end
  130.  
  131. -- Функционал кнопок
  132. espButton.MouseButton1Click:Connect(function()
  133. local objectName = inputBox.Text
  134. if objectName == "" then
  135. game:GetService("StarterGui"):SetCore("SendNotification", {
  136. Title = "Ошибка",
  137. Text = "Введите имя объекта!",
  138. Duration = 3
  139. })
  140. return
  141. end
  142.  
  143. -- Удаляем старые ESP
  144. for _, obj in ipairs(workspace:GetDescendants()) do
  145. if obj:FindFirstChild("ESP_Highlight") then
  146. obj.ESP_Highlight:Destroy()
  147. end
  148. end
  149.  
  150. -- Создаем ESP для всех объектов с таким именем
  151. local found = false
  152. for _, obj in ipairs(workspace:GetDescendants()) do
  153. if obj.Name == objectName then
  154. createESP(obj, Color3.fromRGB(0, 255, 255))
  155. found = true
  156. end
  157. end
  158.  
  159. if found then
  160. game:GetService("StarterGui"):SetCore("SendNotification", {
  161. Title = "Успешно",
  162. Text = "ESP создано для '"..objectName.."'",
  163. Duration = 3
  164. })
  165. else
  166. game:GetService("StarterGui"):SetCore("SendNotification", {
  167. Title = "Ошибка",
  168. Text = "Объект '"..objectName.."' не найден!",
  169. Duration = 3
  170. })
  171. end
  172. end)
  173.  
  174. copyScriptButton.MouseButton1Click:Connect(function()
  175. local objectName = inputBox.Text
  176. if objectName == "" then
  177. game:GetService("StarterGui"):SetCore("SendNotification", {
  178. Title = "Ошибка",
  179. Text = "Сначала введите имя объекта!",
  180. Duration = 3
  181. })
  182. return
  183. end
  184.  
  185. local scriptToCopy = [[
  186. -- ESP скрипт для объекта: ]]..objectName..[[
  187.  
  188. local function createESP(object, color)
  189. if not object then return end
  190.  
  191. local highlight = Instance.new("Highlight")
  192. highlight.Name = "ESP_Highlight"
  193. highlight.Adornee = object
  194. highlight.DepthMode = Enum.HighlightDepthMode.AlwaysOnTop
  195. highlight.FillColor = color or Color3.fromRGB(255, 0, 255)
  196. highlight.FillTransparency = 0.5
  197. highlight.OutlineColor = Color3.fromRGB(255, 255, 255)
  198. highlight.OutlineTransparency = 0
  199. highlight.Parent = object
  200.  
  201. return highlight
  202. end
  203.  
  204. -- Создаем ESP для объекта ']]..objectName..[['
  205. for _, obj in ipairs(workspace:GetDescendants()) do
  206. if obj.Name == "]]..objectName..[[" then
  207. createESP(obj, Color3.fromRGB(0, 255, 255))
  208. end
  209. end
  210.  
  211. print("ESP создано для ']]..objectName..[['")
  212. ]]
  213.  
  214. setclipboard(scriptToCopy)
  215.  
  216. game:GetService("StarterGui"):SetCore("SendNotification", {
  217. Title = "Скрипт скопирован",
  218. Text = "ESP скрипт для '"..objectName.."' в буфере",
  219. Duration = 3
  220. })
  221. end)
  222.  
  223. closeButton.MouseButton1Click:Connect(function()
  224. gui:Destroy()
  225. end)
  226.  
  227. -- Функционал перемещения окна
  228. local dragging
  229. local dragInput
  230. local dragStart
  231. local startPos
  232.  
  233. local function update(input)
  234. local delta = input.Position - dragStart
  235. mainFrame.Position = UDim2.new(startPos.X.Scale, startPos.X.Offset + delta.X, startPos.Y.Scale, startPos.Y.Offset + delta.Y)
  236. end
  237.  
  238. title.InputBegan:Connect(function(input)
  239. if input.UserInputType == Enum.UserInputType.MouseButton1 then
  240. dragging = true
  241. dragStart = input.Position
  242. startPos = mainFrame.Position
  243.  
  244. input.Changed:Connect(function()
  245. if input.UserInputState == Enum.UserInputState.End then
  246. dragging = false
  247. end
  248. end)
  249. end
  250. end)
  251.  
  252. title.InputChanged:Connect(function(input)
  253. if input.UserInputType == Enum.UserInputType.MouseMovement then
  254. dragInput = input
  255. end
  256. end)
  257.  
  258. UserInputService.InputChanged:Connect(function(input)
  259. if input == dragInput and dragging then
  260. update(input)
  261. end
  262. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement