Guest

CoolStudios AimbotESP

May 1st, 2026
12
0
Never
Not a member of GistPad yet? Sign Up, it unlocks many cool features!
None 16.44 KB | None | 0 0
  1. local Rayfield = loadstring(game:HttpGet('https://sirius.menu/rayfield'))()
  2.  
  3. local Players = game:GetService("Players")
  4. local RunService = game:GetService("RunService")
  5. local UIS = game:GetService("UserInputService")
  6.  
  7. local player = Players.LocalPlayer
  8. local Camera = workspace.CurrentCamera
  9.  
  10. --------------------------------------------------
  11. -- SETTINGS
  12. --------------------------------------------------
  13. local espEnabled = false
  14. local aimEnabled = false
  15. local rainbowESP = false
  16. local clickAim = false
  17.  
  18. local espColor = Color3.fromRGB(255, 0, 0)
  19. local rainbowSpeed = 0.02
  20.  
  21. local smoothness = 0.15
  22. local maxDistance = 150
  23.  
  24. local espObjects = {}
  25.  
  26. --------------------------------------------------
  27. -- UI WINDOW
  28. --------------------------------------------------
  29. local Window = Rayfield:CreateWindow({
  30. Name = "Cool Studios",
  31. Icon = 11767039004,
  32. LoadingTitle = "Cool Studios",
  33. LoadingSubtitle = "System Loading...",
  34. Theme = "Amber",
  35. ToggleUIKeybind = "K",
  36. })
  37.  
  38. local ESPTab = Window:CreateTab("ESP", 11767039004)
  39. local AimTab = Window:CreateTab("Aim Assist", 11767039004)
  40.  
  41. --------------------------------------------------
  42. -- RAINBOW
  43. --------------------------------------------------
  44. local function getRainbowColor()
  45. return Color3.fromHSV(tick() * rainbowSpeed % 1, 1, 1)
  46. end
  47.  
  48. --------------------------------------------------
  49. -- VISIBILITY CHECK (🔥 WALL CHECK)
  50. --------------------------------------------------
  51. local function isVisible(targetPart)
  52. local origin = Camera.CFrame.Position
  53. local direction = (targetPart.Position - origin)
  54.  
  55. local params = RaycastParams.new()
  56. params.FilterType = Enum.RaycastFilterType.Blacklist
  57. params.FilterDescendantsInstances = {player.Character}
  58.  
  59. local result = workspace:Raycast(origin, direction, params)
  60.  
  61. if result and result.Instance then
  62. return result.Instance:IsDescendantOf(targetPart.Parent)
  63. end
  64.  
  65. return true
  66. end
  67.  
  68. --------------------------------------------------
  69. -- ESP UI
  70. --------------------------------------------------
  71. ESPTab:CreateToggle({
  72. Name = "Enable ESP",
  73. Callback = function(Value)
  74. espEnabled = Value
  75.  
  76. if not Value then
  77. for _, obj in pairs(espObjects) do
  78. if obj then obj:Destroy() end
  79. end
  80. espObjects = {}
  81. end
  82. end,
  83. })
  84.  
  85. ESPTab:CreateToggle({
  86. Name = "Rainbow ESP",
  87. Callback = function(Value)
  88. rainbowESP = Value
  89. end,
  90. })
  91.  
  92. ESPTab:CreateColorPicker({
  93. Name = "ESP Color",
  94. Color = espColor,
  95. Callback = function(Value)
  96. espColor = Value
  97. end,
  98. })
  99.  
  100. --------------------------------------------------
  101. -- AIM UI
  102. --------------------------------------------------
  103. AimTab:CreateToggle({
  104. Name = "Enable Aim Assist",
  105. Callback = function(Value)
  106. aimEnabled = Value
  107. end,
  108. })
  109.  
  110. AimTab:CreateToggle({
  111. Name = "Only While Clicking", -- 🔥 NEW
  112. Callback = function(Value)
  113. clickAim = Value
  114. end,
  115. })
  116.  
  117. AimTab:CreateSlider({
  118. Name = "Smoothness",
  119. Range = {0.05, 1},
  120. Increment = 0.05,
  121. CurrentValue = smoothness,
  122. Callback = function(Value)
  123. smoothness = Value
  124. end,
  125. })
  126.  
  127. AimTab:CreateSlider({
  128. Name = "Max Distance",
  129. Range = {50, 300},
  130. Increment = 10,
  131. CurrentValue = maxDistance,
  132. Callback = function(Value)
  133. maxDistance = Value
  134. end,
  135. })
  136.  
  137. --------------------------------------------------
  138. -- ESP SYSTEM
  139. --------------------------------------------------
  140. local function applyESP(plr)
  141. if plr == player then return end
  142. if not plr.Character then return end
  143.  
  144. if espObjects[plr] then
  145. espObjects[plr]:Destroy()
  146. end
  147.  
  148. local h = Instance.new("Highlight")
  149.  
  150. if rainbowESP then
  151. local c = getRainbowColor()
  152. h.FillColor = c
  153. h.OutlineColor = c
  154. else
  155. h.FillColor = espColor
  156. h.OutlineColor = espColor
  157. end
  158.  
  159. h.FillTransparency = 0.5
  160. h.OutlineTransparency = 0
  161. h.Adornee = plr.Character
  162. h.Parent = plr.Character
  163.  
  164. espObjects[plr] = h
  165. end
  166.  
  167. --------------------------------------------------
  168. -- AIM SYSTEM (🔥 WITH WALL CHECK)
  169. --------------------------------------------------
  170. local function getClosestTarget()
  171. if not player.Character then return nil end
  172.  
  173. local root = player.Character:FindFirstChild("HumanoidRootPart")
  174. if not root then return nil end
  175.  
  176. local closest
  177. local shortest = math.huge
  178.  
  179. for _, p in ipairs(Players:GetPlayers()) do
  180. if p ~= player and p.Character then
  181. local targetRoot = p.Character:FindFirstChild("HumanoidRootPart")
  182.  
  183. if targetRoot then
  184. local dist = (root.Position - targetRoot.Position).Magnitude
  185.  
  186. -- 🔥 DISTANCE + WALL CHECK
  187. if dist <= maxDistance and isVisible(targetRoot) then
  188. if dist < shortest then
  189. shortest = dist
  190. closest = targetRoot
  191. end
  192. end
  193. end
  194. end
  195. end
  196.  
  197. return closest
  198. end
  199.  
  200. --------------------------------------------------
  201. -- AIM LOOP
  202. --------------------------------------------------
  203. RunService.RenderStepped:Connect(function()
  204. if not aimEnabled then return end
  205.  
  206. -- 🔥 CLICK CHECK
  207. if clickAim and not UIS:IsMouseButtonPressed(Enum.UserInputType.MouseButton2) then
  208. return
  209. end
  210.  
  211. local target = getClosestTarget()
  212. if not target then return end
  213.  
  214. local camPos = Camera.CFrame.Position
  215. local goal = CFrame.new(camPos, target.Position)
  216.  
  217. Camera.CFrame = Camera.CFrame:Lerp(goal, smoothness)
  218. end)
  219.  
  220. --------------------------------------------------
  221. -- ESP LOOP
  222. --------------------------------------------------
  223. task.spawn(function()
  224. while true do
  225. task.wait(0.1)
  226.  
  227. if espEnabled then
  228. for _, plr in ipairs(Players:GetPlayers()) do
  229. if plr ~= player then
  230. applyESP(plr)
  231. end
  232. end
  233. end
  234. end
  235. end)
RAW Paste Data Copied