Guest User

lucaxx script

a guest
Oct 3rd, 2025
124
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 9.20 KB | None | 0 0
  1. -- LucaxxxHub Rayfield Panel (com FOV dinâmico e funcional, ESP box branco)
  2.  
  3. local Rayfield = loadstring(game:HttpGet('https://sirius.menu/rayfield'))()
  4.  
  5. local Players = game:GetService("Players")
  6. local UserInputService = game:GetService("UserInputService")
  7. local RunService = game:GetService("RunService")
  8. local Camera = workspace.CurrentCamera
  9. local LocalPlayer = Players.LocalPlayer
  10.  
  11. -- FOV Vars
  12. getgenv().lucaxx_fov_enabled = false
  13. getgenv().lucaxx_fov_size = 240 -- Padrão
  14. local fovDrawing = nil
  15.  
  16. local function updateFOV()
  17. if not getgenv().lucaxx_fov_enabled then
  18. if fovDrawing then
  19. fovDrawing.Visible = false
  20. end
  21. return
  22. end
  23. if not fovDrawing then
  24. fovDrawing = Drawing.new("Circle")
  25. fovDrawing.Color = Color3.fromRGB(255,0,0)
  26. fovDrawing.Thickness = 2
  27. fovDrawing.Filled = false
  28. fovDrawing.Transparency = 0.7
  29. end
  30. fovDrawing.Radius = getgenv().lucaxx_fov_size/2
  31. fovDrawing.Position = Vector2.new(Camera.ViewportSize.X/2, Camera.ViewportSize.Y/2)
  32. fovDrawing.Visible = true
  33. end
  34.  
  35. RunService.RenderStepped:Connect(function()
  36. if fovDrawing and getgenv().lucaxx_fov_enabled then
  37. fovDrawing.Position = Vector2.new(Camera.ViewportSize.X/2, Camera.ViewportSize.Y/2)
  38. fovDrawing.Radius = getgenv().lucaxx_fov_size/2
  39. fovDrawing.Visible = true
  40. end
  41. end)
  42.  
  43. -- ESP Table
  44. local espObjects = {}
  45.  
  46. local function clearESP()
  47. for _,adorns in pairs(espObjects) do
  48. for _,ad in pairs(adorns) do
  49. if ad and ad.Parent then
  50. ad:Destroy()
  51. end
  52. end
  53. end
  54. espObjects = {}
  55. end
  56.  
  57. local function createESP(plr)
  58. if plr == LocalPlayer then return end
  59. if not plr.Character then return end
  60. espObjects[plr] = {}
  61. for _,part in ipairs(plr.Character:GetDescendants()) do
  62. if part:IsA("BasePart") then
  63. local adorn = Instance.new("BoxHandleAdornment")
  64. adorn.Adornee = part
  65. adorn.AlwaysOnTop = true
  66. adorn.ZIndex = 10
  67. adorn.Size = part.Size
  68. adorn.Color3 = Color3.fromRGB(255,255,255)
  69. adorn.Transparency = 0.6
  70. adorn.Parent = LocalPlayer.PlayerGui
  71. table.insert(espObjects[plr], adorn)
  72. end
  73. end
  74. end
  75.  
  76. local function updateESP()
  77. clearESP()
  78. for _,plr in ipairs(Players:GetPlayers()) do
  79. if plr ~= LocalPlayer and plr.Character and plr.Character:FindFirstChild("HumanoidRootPart") then
  80. createESP(plr)
  81. end
  82. end
  83. end
  84.  
  85. local espConnection
  86. local renderESPConnection
  87. local function toggleESP(state)
  88. if state then
  89. updateESP()
  90. espConnection = Players.PlayerAdded:Connect(function(plr)
  91. plr.CharacterAdded:Connect(function()
  92. wait(1)
  93. updateESP()
  94. end)
  95. end)
  96. renderESPConnection = RunService.RenderStepped:Connect(updateESP)
  97. else
  98. if espConnection then espConnection:Disconnect() espConnection = nil end
  99. if renderESPConnection then renderESPConnection:Disconnect() renderESPConnection = nil end
  100. clearESP()
  101. end
  102. end
  103.  
  104. -- AIMBOT
  105. local aimConnection
  106. local function getClosestPlayerToMouse()
  107. local closestPlayer
  108. local shortestDistance = math.huge
  109. local mousePos = UserInputService:GetMouseLocation()
  110. for _, player in ipairs(Players:GetPlayers()) do
  111. if player ~= LocalPlayer and player.Character and player.Character:FindFirstChild("Head") then
  112. local head = player.Character.Head
  113. local pos, onScreen = Camera:WorldToViewportPoint(head.Position)
  114. if onScreen then
  115. local dist = (Vector2.new(pos.X, pos.Y) - Vector2.new(mousePos.X, mousePos.Y)).Magnitude
  116. if dist < shortestDistance then
  117. shortestDistance = dist
  118. closestPlayer = player
  119. end
  120. end
  121. end
  122. end
  123. return closestPlayer
  124. end
  125.  
  126. local function startAimbot()
  127. if aimConnection then aimConnection:Disconnect() end
  128. aimConnection = RunService.RenderStepped:Connect(function()
  129. local target = getClosestPlayerToMouse()
  130. if target and target.Character and target.Character:FindFirstChild("Head") then
  131. local headPos = target.Character.Head.Position
  132. Camera.CFrame = CFrame.new(Camera.CFrame.Position, headPos)
  133. end
  134. end)
  135. end
  136.  
  137. local function stopAimbot()
  138. if aimConnection then
  139. aimConnection:Disconnect()
  140. aimConnection = nil
  141. end
  142. end
  143.  
  144. local function toggleAimbot(state)
  145. if state then
  146. startAimbot()
  147. else
  148. stopAimbot()
  149. end
  150. end
  151.  
  152. -- Speed
  153. local origWalkSpeed = 16
  154. local function toggleSpeed(state)
  155. if LocalPlayer.Character and LocalPlayer.Character:FindFirstChildOfClass("Humanoid") then
  156. if state then
  157. origWalkSpeed = LocalPlayer.Character:FindFirstChildOfClass("Humanoid").WalkSpeed
  158. LocalPlayer.Character:FindFirstChildOfClass("Humanoid").WalkSpeed = 100
  159. else
  160. LocalPlayer.Character:FindFirstChildOfClass("Humanoid").WalkSpeed = origWalkSpeed
  161. end
  162. end
  163. end
  164.  
  165. -- AimKill
  166. local function toggleAimKill(state)
  167. if state then
  168. for _,plr in ipairs(Players:GetPlayers()) do
  169. if plr ~= LocalPlayer and plr.Character and plr.Character:FindFirstChildOfClass("Humanoid") then
  170. plr.Character:FindFirstChildOfClass("Humanoid").Health = 0
  171. end
  172. end
  173. end
  174. end
  175.  
  176. -- Infinite Jump
  177. local infiniteJumpConnection
  178. local function toggleInfJump(state)
  179. if state then
  180. if infiniteJumpConnection then infiniteJumpConnection:Disconnect() end
  181. infiniteJumpConnection = UserInputService.JumpRequest:Connect(function()
  182. if LocalPlayer.Character and LocalPlayer.Character:FindFirstChildOfClass("Humanoid") then
  183. LocalPlayer.Character:FindFirstChildOfClass("Humanoid"):ChangeState(Enum.HumanoidStateType.Jumping)
  184. end
  185. end)
  186. else
  187. if infiniteJumpConnection then infiniteJumpConnection:Disconnect() infiniteJumpConnection = nil end
  188. end
  189. end
  190.  
  191. -- Infinite Life
  192. local infLifeConnection
  193. local function toggleInfLife(state)
  194. if state then
  195. if infLifeConnection then infLifeConnection:Disconnect() end
  196. infLifeConnection = RunService.Heartbeat:Connect(function()
  197. if LocalPlayer.Character and LocalPlayer.Character:FindFirstChildOfClass("Humanoid") then
  198. local hum = LocalPlayer.Character:FindFirstChildOfClass("Humanoid")
  199. if hum.Health < hum.MaxHealth then
  200. hum.Health = hum.MaxHealth
  201. end
  202. end
  203. end)
  204. if LocalPlayer.Character and LocalPlayer.Character:FindFirstChildOfClass("Humanoid") then
  205. local hum = LocalPlayer.Character:FindFirstChildOfClass("Humanoid")
  206. hum.Health = hum.MaxHealth
  207. end
  208. else
  209. if infLifeConnection then infLifeConnection:Disconnect() infLifeConnection = nil end
  210. end
  211. end
  212.  
  213. -- ------------------- Rayfield Menu ------------------- --
  214. local Window = Rayfield:CreateWindow({
  215. Name = "LucaxxxHub Rayfield Panel",
  216. LoadingTitle = "LucaxxxHub Panel",
  217. LoadingSubtitle = "by Lucaxxx",
  218. ConfigurationSaving = {
  219. Enabled = false,
  220. },
  221. KeySystem = true,
  222. KeySettings = {
  223. Title = "LucaxxxHub Key",
  224. Subtitle = "Digite a chave para acessar",
  225. Note = "Key: lucaxx",
  226. FileName = "lucaxxhub_key.txt",
  227. SaveKey = false,
  228. GrabKeyFromSite = false,
  229. Key = {"lucaxx"}
  230. }
  231. })
  232.  
  233. local MainTab = Window:CreateTab("Painel", 4483362458)
  234.  
  235. MainTab:CreateToggle({
  236. Name = "Aimbot (Gruda na cabeça)",
  237. CurrentValue = false,
  238. Callback = function(Value)
  239. toggleAimbot(Value)
  240. end
  241. })
  242.  
  243. MainTab:CreateToggle({
  244. Name = "ESP Box Branco",
  245. CurrentValue = false,
  246. Callback = function(Value)
  247. toggleESP(Value)
  248. end
  249. })
  250.  
  251. MainTab:CreateToggle({
  252. Name = "FOV (círculo vermelho)",
  253. CurrentValue = false,
  254. Callback = function(Value)
  255. getgenv().lucaxx_fov_enabled = Value
  256. updateFOV()
  257. end
  258. })
  259.  
  260. MainTab:CreateSlider({
  261. Name = "Tamanho do FOV",
  262. Range = {50, 600},
  263. Increment = 1,
  264. CurrentValue = getgenv().lucaxx_fov_size,
  265. Callback = function(Value)
  266. getgenv().lucaxx_fov_size = Value
  267. updateFOV()
  268. end
  269. })
  270.  
  271. MainTab:CreateToggle({
  272. Name = "Speed (100)",
  273. CurrentValue = false,
  274. Callback = function(Value)
  275. toggleSpeed(Value)
  276. end
  277. })
  278.  
  279. MainTab:CreateButton({
  280. Name = "AimKill (Mata todos)",
  281. Callback = function()
  282. toggleAimKill(true)
  283. end
  284. })
  285.  
  286. MainTab:CreateToggle({
  287. Name = "Infinite Jump",
  288. CurrentValue = false,
  289. Callback = function(Value)
  290. toggleInfJump(Value)
  291. end
  292. })
  293.  
  294. MainTab:CreateToggle({
  295. Name = "Infinite Life",
  296. CurrentValue = false,
  297. Callback = function(Value)
  298. toggleInfLife(Value)
  299. end
  300. })
  301.  
  302. Rayfield:Notify({
  303. Title = "LucaxxxHub Rayfield",
  304. Content = "Script carregado! Use a key: lucaxx",
  305. Duration = 5
  306. })
Advertisement
Add Comment
Please, Sign In to add comment