smileysawyer

Aladia Pvp Aimbot V2 Script by Smiley

Apr 12th, 2025 (edited)
4,461
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 8.38 KB | None | 0 0
  1. -- Made by Smiley Sawyer
  2.  
  3. local Players = game:GetService("Players")
  4. local TweenService = game:GetService("TweenService")
  5. local UserInputService = game:GetService("UserInputService")
  6. local RunService = game:GetService("RunService")
  7.  
  8. local LocalPlayer = Players.LocalPlayer
  9. local Mouse = LocalPlayer:GetMouse()
  10. local Camera = workspace.CurrentCamera
  11. local PlayerGui = LocalPlayer:WaitForChild("PlayerGui")
  12.  
  13. -- == CREDITS UI == --
  14.  
  15. local creditsGui = Instance.new("ScreenGui")
  16. creditsGui.Name = "CreditsGUI"
  17. creditsGui.ResetOnSpawn = false
  18. creditsGui.IgnoreGuiInset = true
  19. creditsGui.Parent = PlayerGui
  20.  
  21. local creditBox = Instance.new("Frame")
  22. creditBox.Size = UDim2.new(0, 400, 0, 60)
  23. creditBox.Position = UDim2.new(0.5, 0, 0.5, 0)
  24. creditBox.AnchorPoint = Vector2.new(0.5, 0.5)
  25. creditBox.BackgroundColor3 = Color3.new(0, 0, 0)
  26. creditBox.BackgroundTransparency = 1
  27. creditBox.Parent = creditsGui
  28.  
  29. local corner = Instance.new("UICorner")
  30. corner.CornerRadius = UDim.new(0, 20)
  31. corner.Parent = creditBox
  32.  
  33. local creditText = Instance.new("TextLabel")
  34. creditText.Size = UDim2.new(1, 0, 1, 0)
  35. creditText.BackgroundTransparency = 1
  36. creditText.Text = "Made by Smiley Sawyer"
  37. creditText.Font = Enum.Font.GothamBold
  38. creditText.TextScaled = true
  39. creditText.TextColor3 = Color3.new(1, 1, 1)
  40. creditText.TextStrokeTransparency = 1
  41. creditText.TextStrokeColor3 = Color3.new(1, 1, 1)
  42. creditText.TextTransparency = 1
  43. creditText.Parent = creditBox
  44.  
  45. local function showCredits()
  46. TweenService:Create(creditBox, TweenInfo.new(1), {BackgroundTransparency = 0.2}):Play()
  47. TweenService:Create(creditText, TweenInfo.new(1), {
  48. TextTransparency = 0,
  49. TextStrokeTransparency = 0
  50. }):Play()
  51. task.wait(4)
  52. TweenService:Create(creditBox, TweenInfo.new(1), {BackgroundTransparency = 1}):Play()
  53. TweenService:Create(creditText, TweenInfo.new(1), {
  54. TextTransparency = 1,
  55. TextStrokeTransparency = 1
  56. }):Play()
  57. end
  58.  
  59. showCredits()
  60.  
  61. -- == MINI CREDITS (Bottom Left Corner) == --
  62. local miniCredits = Instance.new("TextLabel")
  63. miniCredits.Size = UDim2.new(0, 180, 0, 24)
  64. miniCredits.Position = UDim2.new(0, 10, 1, -30)
  65. miniCredits.BackgroundTransparency = 1
  66. miniCredits.Text = "Smiley Aimbot V2"
  67. miniCredits.Font = Enum.Font.GothamSemibold
  68. miniCredits.TextSize = 14
  69. miniCredits.TextColor3 = Color3.new(1, 1, 1)
  70. miniCredits.TextXAlignment = Enum.TextXAlignment.Left
  71. miniCredits.Parent = creditsGui
  72.  
  73. -- == AIMBOT (ESP Box Top Center + FOV Circle) == --
  74.  
  75. local AimEnabled = falsea
  76. local Smoothness = 0.08
  77. local AimbotMode = "Instant"
  78. local MaxFOV = 30
  79.  
  80. -- FOV Circle (mouse-following)
  81. local fovCircle = Drawing.new("Circle")
  82. fovCircle.Visible = true
  83. fovCircle.Radius = MaxFOV
  84. fovCircle.Thickness = 1
  85. fovCircle.Position = Vector2.new(Mouse.X, Mouse.Y)
  86. fovCircle.Transparency = 0
  87. fovCircle.Color = Color3.fromRGB(255, 255, 255)
  88. fovCircle.Filled = false
  89.  
  90. -- Static Center FOV Circle
  91. local centerFOVCircle = Drawing.new("Circle")
  92. centerFOVCircle.Visible = true
  93. centerFOVCircle.Radius = MaxFOV
  94. centerFOVCircle.Thickness = 1
  95. centerFOVCircle.Position = Vector2.new(Camera.ViewportSize.X / 2, Camera.ViewportSize.Y / 2)
  96. centerFOVCircle.Transparency = 1
  97. centerFOVCircle.Color = Color3.fromRGB(255, 255, 255)
  98. centerFOVCircle.Filled = false
  99.  
  100. local function updateFOV()
  101. fovCircle.Position = Vector2.new(Mouse.X, Mouse.Y)
  102. centerFOVCircle.Position = Vector2.new(Camera.ViewportSize.X / 2, Camera.ViewportSize.Y / 2)
  103. end
  104.  
  105. local function getESPBoxTopCenter(player)
  106. local character = player.Character
  107. if not character or not character:FindFirstChild("HumanoidRootPart") then return nil end
  108.  
  109. local parts = {}
  110. for _, part in ipairs(character:GetChildren()) do
  111. if part:IsA("BasePart") and part.Name ~= "HumanoidRootPart" then
  112. table.insert(parts, part)
  113. end
  114. end
  115.  
  116. local top = nil
  117. for _, part in ipairs(parts) do
  118. if not top or part.Position.Y > top.Y then
  119. top = part.Position
  120. end
  121. end
  122.  
  123. if not top then return nil end
  124.  
  125. local screenPos, onScreen = Camera:WorldToScreenPoint(top)
  126. if not onScreen then return nil end
  127.  
  128. local unitRay = Camera:ScreenPointToRay(screenPos.X, screenPos.Y)
  129. return unitRay.Origin + unitRay.Direction * 1000
  130. end
  131.  
  132. local function aimAtTarget()
  133. local targetPos = nil
  134. local shortest = MaxFOV
  135.  
  136. for _, player in ipairs(Players:GetPlayers()) do
  137. if player ~= LocalPlayer and player.Character then
  138. local target = getESPBoxTopCenter(player)
  139. if target then
  140. local screenPos, onScreen = Camera:WorldToScreenPoint(target)
  141. if onScreen then
  142. local dist = (Vector2.new(Mouse.X, Mouse.Y) - Vector2.new(screenPos.X, screenPos.Y)).Magnitude
  143. if dist < shortest then
  144. shortest = dist
  145. targetPos = target
  146. end
  147. end
  148. end
  149. end
  150. end
  151.  
  152. if targetPos then
  153. local camPos = Camera.CFrame.Position
  154. local aimCFrame = CFrame.new(camPos, targetPos)
  155. if AimbotMode == "Instant" then
  156. Camera.CFrame = aimCFrame
  157. else
  158. Camera.CFrame = Camera.CFrame:Lerp(aimCFrame, Smoothness)
  159. end
  160. end
  161. end
  162.  
  163. UserInputService.InputBegan:Connect(function(input, processed)
  164. if not processed and input.UserInputType == Enum.UserInputType.MouseButton2 then
  165. AimEnabled = true
  166. end
  167. end)
  168.  
  169. UserInputService.InputEnded:Connect(function(input, processed)
  170. if input.UserInputType == Enum.UserInputType.MouseButton2 then
  171. AimEnabled = false
  172. end
  173. end)
  174.  
  175. RunService.RenderStepped:Connect(function()
  176. updateFOV()
  177. if AimEnabled then
  178. aimAtTarget()
  179. end
  180. end)
  181.  
  182. -- == WHITE BOX ESP + NAME == --
  183.  
  184. local ESPObjects = {}
  185.  
  186. local function removeESP(player)
  187. local esp = ESPObjects[player]
  188. if esp then
  189. if esp.Box then esp.Box:Remove() end
  190. if esp.Name then esp.Name:Remove() end
  191. ESPObjects[player] = nil
  192. end
  193. end
  194.  
  195. local function createESP(player)
  196. if player == LocalPlayer then return end
  197.  
  198. removeESP(player)
  199.  
  200. local box = Drawing.new("Square")
  201. box.Thickness = 1
  202. box.Filled = false
  203. box.Color = Color3.fromRGB(255, 255, 255)
  204. box.Transparency = 1
  205. box.Visible = false
  206.  
  207. local nameTag = Drawing.new("Text")
  208. nameTag.Size = 14
  209. nameTag.Center = true
  210. nameTag.Outline = true
  211. nameTag.Color = Color3.fromRGB(255, 255, 255)
  212. nameTag.Text = player.Name
  213. nameTag.Visible = false
  214.  
  215. ESPObjects[player] = {
  216. Box = box,
  217. Name = nameTag,
  218. }
  219.  
  220. player.CharacterAdded:Connect(function()
  221. task.wait(1)
  222. createESP(player)
  223. end)
  224.  
  225. player.CharacterRemoving:Connect(function()
  226. removeESP(player)
  227. end)
  228.  
  229. if player.Character then
  230. local humanoid = player.Character:FindFirstChildOfClass("Humanoid")
  231. if humanoid then
  232. humanoid.Died:Connect(function()
  233. removeESP(player)
  234. end)
  235. end
  236. end
  237. end
  238.  
  239. local function getCharacterBounds(character)
  240. local parts = {}
  241. for _, part in ipairs(character:GetChildren()) do
  242. if part:IsA("BasePart") and part.Name ~= "HumanoidRootPart" then
  243. table.insert(parts, part)
  244. end
  245. end
  246.  
  247. local top, bottom = nil, nil
  248. for _, part in ipairs(parts) do
  249. if not top or part.Position.Y > top.Y then top = part.Position end
  250. if not bottom or part.Position.Y < bottom.Y then bottom = part.Position end
  251. end
  252.  
  253. return top, bottom
  254. end
  255.  
  256. RunService.RenderStepped:Connect(function()
  257. for player, esp in pairs(ESPObjects) do
  258. local character = player.Character
  259. if character and character:FindFirstChild("HumanoidRootPart") then
  260. local top, bottom = getCharacterBounds(character)
  261. if not top or not bottom then continue end
  262.  
  263. local topScreen, topOnScreen = Camera:WorldToViewportPoint(top)
  264. local bottomScreen, bottomOnScreen = Camera:WorldToViewportPoint(bottom)
  265.  
  266. if topOnScreen and bottomOnScreen then
  267. local height = math.abs(topScreen.Y - bottomScreen.Y)
  268. local width = height / 2
  269. local centerX = (topScreen.X + bottomScreen.X) / 2
  270.  
  271. esp.Box.Size = Vector2.new(width, height)
  272. esp.Box.Position = Vector2.new(centerX - width / 2, topScreen.Y)
  273. esp.Box.Visible = true
  274.  
  275. esp.Name.Text = player.Name
  276. esp.Name.Position = Vector2.new(centerX, topScreen.Y - 16)
  277. esp.Name.Visible = true
  278. else
  279. esp.Box.Visible = false
  280. esp.Name.Visible = false
  281. end
  282. else
  283. if esp then
  284. esp.Box.Visible = false
  285. esp.Name.Visible = false
  286. end
  287. end
  288. end
  289. end)
  290.  
  291. for _, player in ipairs(Players:GetPlayers()) do
  292. if player ~= LocalPlayer then
  293. createESP(player)
  294. end
  295. end
  296.  
  297. Players.PlayerAdded:Connect(function(player)
  298. player.CharacterAdded:Connect(function()
  299. task.wait(1)
  300. createESP(player)
  301. end)
  302. end)
  303.  
  304. Players.PlayerRemoving:Connect(removeESP)
  305.  
Advertisement
Add Comment
Please, Sign In to add comment