Advertisement
kill21_2

обход анти чита на скорость, TpSpeed

Apr 30th, 2025 (edited)
2,424
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.34 KB | None | 0 0
  1.  
  2. local Players = game:GetService("Players")
  3. local player = Players.LocalPlayer
  4. local gui = Instance.new("ScreenGui")
  5. gui.Name = "TpSpeedGui"
  6. gui.IgnoreGuiInset = true
  7. gui.ResetOnSpawn = false
  8. gui.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
  9.  
  10. -- Основной контейнер (без фона)
  11. local mainFrame = Instance.new("Frame")
  12. mainFrame.Size = UDim2.new(0.25, 0, 0.15, 0)
  13. mainFrame.Position = UDim2.new(0.725, 0, 0.05, 0)
  14. mainFrame.BackgroundTransparency = 1
  15. mainFrame.Parent = gui
  16.  
  17. -- Заголовок TpSpeed с красивым стилем
  18. local title = Instance.new("TextLabel")
  19. title.Text = "TpSpeed"
  20. title.Size = UDim2.new(1, 0, 0.3, 0)
  21. title.Position = UDim2.new(0, 0, 0, 0)
  22. title.BackgroundTransparency = 1
  23. title.TextColor3 = Color3.fromRGB(0, 255, 255) -- Голубой цвет
  24. title.Font = Enum.Font.GothamBlack
  25. title.TextSize = 24
  26. title.TextXAlignment = Enum.TextXAlignment.Right
  27. title.TextStrokeTransparency = 0.7
  28. title.TextStrokeColor3 = Color3.fromRGB(0, 100, 100)
  29. title.Parent = mainFrame
  30.  
  31. -- Кнопка закрытия с красивым дизайном
  32. local closeButton = Instance.new("ImageButton")
  33. closeButton.Image = "rbxassetid://3926305904" -- Иконка закрытия
  34. closeButton.ImageRectOffset = Vector2.new(284, 4)
  35. closeButton.ImageRectSize = Vector2.new(24, 24)
  36. closeButton.Size = UDim2.new(0, 20, 0, 20)
  37. closeButton.Position = UDim2.new(0.93, 0, 0, 0)
  38. closeButton.BackgroundTransparency = 1
  39. closeButton.ImageColor3 = Color3.fromRGB(255, 100, 100)
  40. closeButton.Parent = mainFrame
  41.  
  42. -- Анимация при наведении на кнопку
  43. closeButton.MouseEnter:Connect(function()
  44. game:GetService("TweenService"):Create(
  45. closeButton,
  46. TweenInfo.new(0.2),
  47. {ImageColor3 = Color3.fromRGB(255, 50, 50), Rotation = 5}
  48. ):Play()
  49. end)
  50.  
  51. closeButton.MouseLeave:Connect(function()
  52. game:GetService("TweenService"):Create(
  53. closeButton,
  54. TweenInfo.new(0.2),
  55. {ImageColor3 = Color3.fromRGB(255, 100, 100), Rotation = 0}
  56. ):Play()
  57. end)
  58.  
  59. -- Контейнер для подсказок
  60. local hintsContainer = Instance.new("Frame")
  61. hintsContainer.Size = UDim2.new(1, 0, 0.7, 0)
  62. hintsContainer.Position = UDim2.new(0, 0, 0.3, 0)
  63. hintsContainer.BackgroundTransparency = 1
  64. hintsContainer.Parent = mainFrame
  65.  
  66. -- Текст подсказки 1 с эффектом свечения
  67. local hint1 = Instance.new("TextLabel")
  68. hint1.Text = "▶ Нажмите F чтобы запустить"
  69. hint1.Size = UDim2.new(1, 0, 0.5, 0)
  70. hint1.Position = UDim2.new(0, 0, 0, 0)
  71. hint1.BackgroundTransparency = 1
  72. hint1.TextColor3 = Color3.fromRGB(200, 200, 255)
  73. hint1.Font = Enum.Font.GothamMedium
  74. hint1.TextSize = 14
  75. hint1.TextXAlignment = Enum.TextXAlignment.Right
  76. hint1.TextTransparency = 0.2
  77. hint1.TextStrokeTransparency = 0.8
  78. hint1.TextStrokeColor3 = Color3.fromRGB(0, 0, 50)
  79. hint1.Parent = hintsContainer
  80.  
  81. -- Текст подсказки 2 с эффектом свечения
  82. local hint2 = Instance.new("TextLabel")
  83. hint2.Text = "▶ В чате: speed [число]"
  84. hint2.Size = UDim2.new(1, 0, 0.5, 0)
  85. hint2.Position = UDim2.new(0, 0, 0.5, 0)
  86. hint2.BackgroundTransparency = 1
  87. hint2.TextColor3 = Color3.fromRGB(200, 200, 255)
  88. hint2.Font = Enum.Font.GothamMedium
  89. hint2.TextSize = 14
  90. hint2.TextXAlignment = Enum.TextXAlignment.Right
  91. hint2.TextTransparency = 0.2
  92. hint2.TextStrokeTransparency = 0.8
  93. hint2.TextStrokeColor3 = Color3.fromRGB(0, 0, 50)
  94. hint2.Parent = hintsContainer
  95.  
  96. -- Анимация появления
  97. mainFrame.Position = UDim2.new(0.8, 0, 0.05, 0)
  98. game:GetService("TweenService"):Create(
  99. mainFrame,
  100. TweenInfo.new(0.5, Enum.EasingStyle.Quad, Enum.EasingDirection.Out),
  101. {Position = UDim2.new(0.725, 0, 0.05, 0)}
  102. ):Play()
  103.  
  104. -- Функционал кнопки закрытия с анимацией
  105. closeButton.MouseButton1Click:Connect(function()
  106. game:GetService("TweenService"):Create(
  107. mainFrame,
  108. TweenInfo.new(0.5, Enum.EasingStyle.Quad, Enum.EasingDirection.Out),
  109. {Position = UDim2.new(0.8, 0, 0.05, 0)}
  110. ):Play()
  111. wait(0.5)
  112. gui:Destroy()
  113. end)
  114.  
  115. -- Добавляем GUI игроку
  116. gui.Parent = player:WaitForChild("PlayerGui")
  117.  
  118. local Player = game:GetService("Players").LocalPlayer
  119. local UserInputService = game:GetService("UserInputService")
  120. local RunService = game:GetService("RunService")
  121.  
  122. local teleportEnabled = false
  123. local teleportDistance = 5 -- Стартовая дистанция
  124. local teleportCooldown = 0.1 -- Задержка между телепортами
  125. local lastTeleport = 0
  126.  
  127. -- Функция для телепортации
  128. local function teleportForward(character)
  129. if not teleportEnabled then return end
  130.  
  131. local rootPart = character:FindFirstChild("HumanoidRootPart")
  132. local humanoid = character:FindFirstChild("Humanoid")
  133.  
  134. if not rootPart or not humanoid or humanoid.Health <= 0 then return end
  135.  
  136. local now = tick()
  137. if now - lastTeleport < teleportCooldown then return end
  138. lastTeleport = now
  139.  
  140. local direction = rootPart.CFrame.LookVector
  141. local newPosition = rootPart.Position + (direction * teleportDistance)
  142.  
  143. -- Проверка на стены/препятствия
  144. local raycastParams = RaycastParams.new()
  145. raycastParams.FilterDescendantsInstances = {character}
  146. raycastParams.FilterType = Enum.RaycastFilterType.Blacklist
  147.  
  148. local raycastResult = workspace:Raycast(rootPart.Position, direction * teleportDistance, raycastParams)
  149. if raycastResult then
  150. newPosition = raycastResult.Position - (direction * 2)
  151. end
  152.  
  153. rootPart.CFrame = CFrame.new(newPosition, newPosition + direction)
  154. end
  155.  
  156. -- Обработчик включения/выключения
  157. UserInputService.InputBegan:Connect(function(input, gameProcessed)
  158. if gameProcessed then return end
  159.  
  160. if input.KeyCode == Enum.KeyCode.F then
  161. teleportEnabled = not teleportEnabled
  162. print("Телепортация: " .. (teleportEnabled and "ВКЛ" or "ВЫКЛ"))
  163. end
  164. end)
  165.  
  166. -- Изменение скорости через чат
  167. Player.Chatted:Connect(function(message)
  168. if message:sub(1, 6):lower() == "speed " then
  169. local newSpeed = tonumber(message:sub(7))
  170. if newSpeed and newSpeed > 0 then
  171. teleportDistance = newSpeed
  172. print("Скорость телепортации изменена на: " .. teleportDistance)
  173. end
  174. end
  175. end)
  176.  
  177. -- Главный цикл (работает даже после смерти)
  178. local function handleCharacter(character)
  179. local humanoid = character:WaitForChild("Humanoid")
  180.  
  181. -- Проверка движения и телепорта
  182. local connection
  183. connection = RunService.Heartbeat:Connect(function()
  184. if teleportEnabled and humanoid.Health > 0 and humanoid.MoveDirection.Magnitude > 0 then
  185. teleportForward(character)
  186. end
  187. end)
  188.  
  189. -- Отслеживание смерти персонажа
  190. humanoid.Died:Connect(function()
  191. connection:Disconnect() -- Остановка телепортации
  192. end)
  193. end
  194.  
  195. -- Автоподключение к новому персонажу
  196. Player.CharacterAdded:Connect(handleCharacter)
  197. if Player.Character then
  198. handleCharacter(Player.Character)
  199. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement