Guest

CoolStudios EspAimbot V2

May 1st, 2026
6
0
Never
Not a member of GistPad yet? Sign Up, it unlocks many cool features!
None 26.72 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. local Workspace = game:GetService("Workspace")
  7.  
  8. local player = Players.LocalPlayer
  9. local Camera = Workspace.CurrentCamera
  10.  
  11. --------------------------------------------------
  12. -- SETTINGS
  13. --------------------------------------------------
  14. local espEnabled = false
  15. local aimEnabled = false
  16. local autoShootEnabled = false
  17. local rainbowESP = false
  18. local clickAim = false
  19. local triggerBot = false
  20.  
  21. local espColor = Color3.fromRGB(255, 0, 0)
  22. local rainbowSpeed = 0.02
  23.  
  24. local smoothness = 0.15
  25. local maxDistance = 150
  26. local aimPart = "Head"
  27. local shootDelay = 0.1
  28.  
  29. local espObjects = {}
  30. local lastShotTime = 0
  31.  
  32. --------------------------------------------------
  33. -- UI WINDOW
  34. --------------------------------------------------
  35. local Window = Rayfield:CreateWindow({
  36. Name = "Cool Studios",
  37. Icon = 11767039004,
  38. LoadingTitle = "Cool Studios",
  39. LoadingSubtitle = "System Loading...",
  40. Theme = "Amber",
  41. ToggleUIKeybind = "K",
  42. })
  43.  
  44. local ESPTab = Window:CreateTab("ESP", 11767039004)
  45. local AimTab = Window:CreateTab("Aim Assist", 11767039004)
  46.  
  47. --------------------------------------------------
  48. -- RAINBOW
  49. --------------------------------------------------
  50. local function getRainbowColor()
  51. return Color3.fromHSV(tick() * rainbowSpeed % 1, 1, 1)
  52. end
  53.  
  54. --------------------------------------------------
  55. -- VISIBILITY CHECK (🔥 WALL CHECK)
  56. --------------------------------------------------
  57. local function isVisible(targetPart)
  58. local origin = Camera.CFrame.Position
  59. local direction = (targetPart.Position - origin)
  60.  
  61. local params = RaycastParams.new()
  62. params.FilterType = Enum.RaycastFilterType.Blacklist
  63. params.FilterDescendantsInstances = {player.Character}
  64.  
  65. local result = Workspace:Raycast(origin, direction, params)
  66.  
  67. if result and result.Instance then
  68. return result.Instance:IsDescendantOf(targetPart.Parent)
  69. end
  70.  
  71. return true
  72. end
  73.  
  74. --------------------------------------------------
  75. -- ESP UI
  76. --------------------------------------------------
  77. ESPTab:CreateToggle({
  78. Name = "Enable ESP",
  79. Callback = function(Value)
  80. espEnabled = Value
  81.  
  82. if not Value then
  83. for _, obj in pairs(espObjects) do
  84. if obj then obj:Destroy() end
  85. end
  86. espObjects = {}
  87. end
  88. end,
  89. })
  90.  
  91. ESPTab:CreateToggle({
  92. Name = "Rainbow ESP",
  93. Callback = function(Value)
  94. rainbowESP = Value
  95. end,
  96. })
  97.  
  98. ESPTab:CreateColorPicker({
  99. Name = "ESP Color",
  100. Color = espColor,
  101. Callback = function(Value)
  102. espColor = Value
  103. end,
  104. })
  105.  
  106. --------------------------------------------------
  107. -- AIM UI
  108. --------------------------------------------------
  109. AimTab:CreateToggle({
  110. Name = "Enable Aim Assist",
  111. Callback = function(Value)
  112. aimEnabled = Value
  113. end,
  114. })
  115.  
  116. AimTab:CreateToggle({
  117. Name = "Only While Clicking",
  118. Callback = function(Value)
  119. clickAim = Value
  120. end,
  121. })
  122.  
  123. AimTab:CreateToggle({
  124. Name = "Auto Shoot",
  125. Callback = function(Value)
  126. autoShootEnabled = Value
  127. end,
  128. })
  129.  
  130. AimTab:CreateToggle({
  131. Name = "Trigger Bot",
  132. Callback = function(Value)
  133. triggerBot = Value
  134. end,
  135. })
  136.  
  137. AimTab:CreateSlider({
  138. Name = "Smoothness",
  139. Range = {0.05, 1},
  140. Increment = 0.05,
  141. CurrentValue = smoothness,
  142. Callback = function(Value)
  143. smoothness = Value
  144. end,
  145. })
  146.  
  147. AimTab:CreateSlider({
  148. Name = "Max Distance",
  149. Range = {50, 300},
  150. Increment = 10,
  151. CurrentValue = maxDistance,
  152. Callback = function(Value)
  153. maxDistance = Value
  154. end,
  155. })
  156.  
  157. AimTab:CreateSlider({
  158. Name = "Shoot Delay",
  159. Range = {0.05, 0.5},
  160. Increment = 0.05,
  161. CurrentValue = shootDelay,
  162. Callback = function(Value)
  163. shootDelay = Value
  164. end,
  165. })
  166.  
  167. AimTab:CreateDropdown({
  168. Name = "Aim Part",
  169. Options = {"Head", "Torso", "HumanoidRootPart", "UpperTorso", "LowerTorso"},
  170. CurrentOption = aimPart,
  171. Callback = function(Value)
  172. aimPart = Value
  173. end,
  174. })
  175.  
  176. --------------------------------------------------
  177. -- ESP SYSTEM
  178. --------------------------------------------------
  179. local function applyESP(plr)
  180. if plr == player then return end
  181. if not plr.Character then return end
  182.  
  183. if espObjects[plr] then
  184. espObjects[plr]:Destroy()
  185. end
  186.  
  187. local h = Instance.new("Highlight")
  188.  
  189. if rainbowESP then
  190. local c = getRainbowColor()
  191. h.FillColor = c
  192. h.OutlineColor = c
  193. else
  194. h.FillColor = espColor
  195. h.OutlineColor = espColor
  196. end
  197.  
  198. h.FillTransparency = 0.5
  199. h.OutlineTransparency = 0
  200. h.Adornee = plr.Character
  201. h.Parent = plr.Character
  202.  
  203. espObjects[plr] = h
  204. end
  205.  
  206. --------------------------------------------------
  207. -- AIM SYSTEM (🔥 WITH WALL CHECK)
  208. --------------------------------------------------
  209. local function getClosestTarget()
  210. if not player.Character then return nil end
  211.  
  212. local root = player.Character:FindFirstChild("HumanoidRootPart")
  213. if not root then return nil end
  214.  
  215. local closestPlayer = nil
  216. local closestPart = nil
  217. local shortest = math.huge
  218.  
  219. for _, p in ipairs(Players:GetPlayers()) do
  220. if p ~= player and p.Character then
  221. local targetRoot = p.Character:FindFirstChild("HumanoidRootPart")
  222. local targetAimPart = p.Character:FindFirstChild(aimPart)
  223.  
  224. if targetRoot and targetAimPart then
  225. local dist = (root.Position - targetRoot.Position).Magnitude
  226.  
  227. -- DISTANCE + WALL CHECK
  228. if dist <= maxDistance and isVisible(targetAimPart) then
  229. if dist < shortest then
  230. shortest = dist
  231. closestPlayer = p
  232. closestPart = targetAimPart
  233. end
  234. end
  235. end
  236. end
  237. end
  238.  
  239. return closestPlayer, closestPart
  240. end
  241.  
  242. --------------------------------------------------
  243. -- AUTO SHOOT SYSTEM
  244. --------------------------------------------------
  245. local function autoShoot(targetPlayer, targetPart)
  246. if not autoShootEnabled or not targetPlayer or not targetPart then return end
  247.  
  248. local currentTime = tick()
  249. if currentTime - lastShotTime < shootDelay then return end
  250.  
  251. -- Schießen mit Mausklick-Simulation
  252. mouse1press()
  253. task.wait(0.05)
  254. mouse1release()
  255.  
  256. lastShotTime = currentTime
  257.  
  258. -- Versuche verschiedene Attack-Methoden für Rivals
  259. local character = player.Character
  260. if character and character:FindFirstChildOfClass("Tool") then
  261. local Tool = character:FindFirstChildOfClass("Tool")
  262.  
  263. -- RemoteEvent-basierte Waffen
  264. local remoteEvent = Tool:FindFirstChild("RemoteEvent")
  265. if remoteEvent then
  266. remoteEvent:FireServer("Fire", targetPart.Position)
  267. return
  268. end
  269.  
  270. -- RemoteFunction-basierte Waffen
  271. local remoteFunction = Tool:FindFirstChild("RemoteFunction")
  272. if remoteFunction then
  273. remoteFunction:InvokeServer("Fire", targetPart.Position)
  274. return
  275. end
  276.  
  277. -- Standard Attack (Tool Activate)
  278. Tool:Activate()
  279. end
  280.  
  281. -- Fallback: Direkter Damage auf Humanoid
  282. if targetPlayer.Character and targetPlayer.Character:FindFirstChild("Humanoid") then
  283. local humanoid = targetPlayer.Character.Humanoid
  284. humanoid:TakeDamage(25)
  285. end
  286. end
  287.  
  288. --------------------------------------------------
  289. -- TRIGGER BOT SYSTEM
  290. --------------------------------------------------
  291. local function triggerBotCheck()
  292. if not triggerBot then return end
  293.  
  294. local currentTime = tick()
  295. if currentTime - lastShotTime < shootDelay then return end
  296.  
  297. -- Raycast für TriggerBot
  298. local rayOrigin = Camera.CFrame.Position
  299. local rayDirection = Camera.CFrame.LookVector * maxDistance
  300. local raycastParams = RaycastParams.new()
  301. raycastParams.FilterType = Enum.RaycastFilterType.Blacklist
  302. raycastParams.FilterDescendantsInstances = {player.Character}
  303.  
  304. local rayResult = Workspace:Raycast(rayOrigin, rayDirection, raycastParams)
  305.  
  306. if rayResult and rayResult.Instance then
  307. local hitPart = rayResult.Instance
  308. local hitPlayer = Players:GetPlayerFromCharacter(hitPart.Parent)
  309.  
  310. if hitPlayer and hitPlayer ~= player then
  311. -- Auto-Shoot wenn auf Gegner gezielt wird
  312. mouse1press()
  313. task.wait(0.05)
  314. mouse1release()
  315. lastShotTime = currentTime
  316.  
  317. -- Attack-Methoden wie oben
  318. if player.Character and player.Character:FindFirstChildOfClass("Tool") then
  319. local Tool = player.Character:FindFirstChildOfClass("Tool")
  320. Tool:Activate()
  321. end
  322. end
  323. end
  324. end
  325.  
  326. --------------------------------------------------
  327. -- AIM LOOP
  328. --------------------------------------------------
  329. RunService.RenderStepped:Connect(function()
  330. -- TriggerBot Check
  331. triggerBotCheck()
  332.  
  333. if not aimEnabled then return end
  334.  
  335. -- CLICK CHECK
  336. if clickAim and not UIS:IsMouseButtonPressed(Enum.UserInputType.MouseButton2) then
  337. return
  338. end
  339.  
  340. local targetPlayer, targetPart = getClosestTarget()
  341.  
  342. if not targetPart then return end
  343.  
  344. local camPos = Camera.CFrame.Position
  345. local goal = CFrame.new(camPos, targetPart.Position)
  346.  
  347. Camera.CFrame = Camera.CFrame:Lerp(goal, smoothness)
  348.  
  349. -- Auto-Shoot nach Aiming
  350. autoShoot(targetPlayer, targetPart)
  351. end)
  352.  
  353. --------------------------------------------------
  354. -- ESP LOOP
  355. --------------------------------------------------
  356. task.spawn(function()
  357. while true do
  358. task.wait(0.1)
  359.  
  360. if espEnabled then
  361. for _, plr in ipairs(Players:GetPlayers()) do
  362. if plr ~= player then
  363. applyESP(plr)
  364. end
  365. end
  366. end
  367. end
  368. end)
  369.  
  370. print("Rivals Combat Script mit Rayfield UI geladen!")
  371. print("Auto-Shoot, TriggerBot, Aim Assist und ESP aktiviert")
RAW Paste Data Copied