mangttigod

제목없는 RPG

Dec 11th, 2025
951
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 19.17 KB | None | 0 0
  1. print("스크립트 실행 중...")
  2. local Luna = loadstring(game:HttpGet("https://raw.githubusercontent.com/Nebula-Softworks/Luna-Interface-Suite/main/source.lua"))()
  3.  
  4. local Window = Luna:CreateWindow({
  5. Name = "xdayoungx Hub | RPG",
  6. LoadingTitle = "xdayoungx Hub",
  7. LoadingSubtitle = "by xdayoungx",
  8. ConfigurationSaving = {
  9. Enabled = true,
  10. FolderName = "xdayoungxHub",
  11. FileName = "RPGConfig"
  12. },
  13. Discord = {
  14. Enabled = false,
  15. Invite = "",
  16. RememberJoins = false
  17. },
  18. KeySystem = false
  19. })
  20.  
  21. local Players = game:GetService("Players")
  22. local LocalPlayer = Players.LocalPlayer
  23. local RunService = game:GetService("RunService")
  24. game:GetService("UserInputService")
  25. game:GetService("TweenService")
  26. local VirtualUser = game:GetService("VirtualUser")
  27. game:GetService("VirtualInputManager")
  28. game:GetService("ReplicatedStorage")
  29. game:GetService("Workspace")
  30. local Lighting = game:GetService("Lighting")
  31. game:GetService("StarterGui")
  32. game:GetService("HttpService")
  33. game:GetService("TeleportService")
  34. game:GetService("MarketplaceService")
  35. game:GetService("BadgeService")
  36. game:GetService("Teams")
  37. game:GetService("Stats")
  38. game:GetService("SoundService")
  39. game:GetService("ContextActionService")
  40. game:GetService("CollectionService")
  41. game:GetService("PathfindingService")
  42. game:GetService("Debris")
  43. game:GetService("PhysicsService")
  44. game:GetService("InsertService")
  45. game:GetService("GuiService")
  46. game:GetService("HapticService")
  47. game:GetService("VRService")
  48. game:GetService("DataStoreService")
  49. game:GetService("MessagingService")
  50. game:GetService("PolicyService")
  51.  
  52. Window:CreateHomeTab({
  53. SupportedExecutors = {
  54. "Synapse X", "Krnl", "Fluxus", "Script-Ware",
  55. "Electron", "Solara", "Wave", "Delta", "Xeno"
  56. },
  57. DiscordInvite = nil,
  58. Icon = 1
  59. })
  60. local MainTab = Window:CreateTab({
  61. Name = "메인",
  62. Icon = "shop",
  63. ImageSource = "Material",
  64. ShowTitle = true
  65. })
  66.  
  67. local SettingsTab = Window:CreateTab({
  68. Name = "설정",
  69. Icon = "settings",
  70. ImageSource = "Material",
  71. ShowTitle = true
  72. })
  73.  
  74. local AutoFarmConfig = {
  75. Enabled = false,
  76. Distance = 4,
  77. HeightOffset = 5,
  78. TargetMob = nil,
  79. CurrentTarget = nil
  80. }
  81.  
  82. local Mobs = workspace.Mobs
  83. local AttackDirection = "Front"
  84. local DirectionAngles = {
  85. Front = 0,
  86. Back = 180,
  87. Up = -90,
  88. Down = 90
  89. }
  90.  
  91.  
  92. local function getCharacter()
  93. return LocalPlayer.Character or LocalPlayer.CharacterAdded:Wait()
  94. end
  95.  
  96. local function rotateCharacter()
  97. local character = getCharacter()
  98. if character then
  99. local humanoidRootPart = character:FindFirstChild("HumanoidRootPart")
  100. if humanoidRootPart then
  101. local angle = DirectionAngles[AttackDirection] or 0
  102. humanoidRootPart.CFrame = CFrame.new(humanoidRootPart.Position) * CFrame.Angles(math.rad(angle), 0, 0)
  103. end
  104. else
  105. return
  106. end
  107. end
  108. local function getMobList()
  109. local mobsFolder = Mobs
  110. local iterator, state, index = ipairs(mobsFolder:GetChildren())
  111. local processedMobs = {}
  112. local mobDisplayList = {}
  113. local mobNameMap = {}
  114. while true do
  115. local mob
  116. index, mob = iterator(state, index)
  117. if index == nil then
  118. break
  119. end
  120. if not processedMobs[mob.Name] then
  121. local mobHead = mob:FindFirstChild("Head")
  122. if mobHead and mobHead:FindFirstChild("MobHead") and (mobHead.MobHead:FindFirstChild("Frame") and mobHead.MobHead.Frame:FindFirstChild("HpText")) then
  123. local hpText = mobHead.MobHead.Frame.HpText.Text or "?"
  124. local displayName = mob.Name .. " [" .. hpText .. "]"
  125. table.insert(mobDisplayList, displayName)
  126. mobNameMap[displayName] = mob.Name
  127. processedMobs[mob.Name] = true
  128. end
  129. end
  130. end
  131. table.sort(mobDisplayList)
  132. return mobDisplayList, mobNameMap
  133. end
  134.  
  135. local MobList, MobMap = getMobList()
  136.  
  137. local function isMobDead(mob)
  138. if not (mob and mob.Parent) then
  139. return true
  140. end
  141. if mob:FindFirstChild("HumanoidRootPart") then
  142. return false
  143. end
  144. local iterator, state, index = ipairs(mob:GetChildren())
  145. while true do
  146. local child
  147. index, child = iterator(state, index)
  148. if index == nil then
  149. break
  150. end
  151. if child:IsA("BasePart") and child.Transparency >= 0.01 then
  152. return true
  153. end
  154. end
  155. return false
  156. end
  157.  
  158. local function findTargetMob()
  159. if not AutoFarmConfig.TargetMob then
  160. return nil
  161. end
  162. local mobsFolder = Mobs
  163. local iterator, state, index = ipairs(mobsFolder:GetChildren())
  164. while true do
  165. local mob
  166. index, mob = iterator(state, index)
  167. if index == nil then
  168. break
  169. end
  170. if mob.Name == AutoFarmConfig.TargetMob and not isMobDead(mob) then
  171. return mob
  172. end
  173. end
  174. return nil
  175. end
  176.  
  177. local function attack()
  178. VirtualUser:Button1Down(Vector2.new(500, 500))
  179. task.wait(0.03)
  180. VirtualUser:Button1Up(Vector2.new(500, 500))
  181. end
  182.  
  183. task.spawn(function()
  184. while task.wait(0.05) do
  185. local shouldBreak = false
  186. local function setBreakFlag()
  187. shouldBreak = true
  188. end
  189. local character = getCharacter()
  190. local humanoid = character:FindFirstChildOfClass("Humanoid")
  191. local humanoidRootPart = character:FindFirstChild("HumanoidRootPart")
  192. if humanoid and humanoid.Health <= 0 then
  193. AutoFarmConfig.CurrentTarget = nil
  194. elseif AutoFarmConfig.Enabled then
  195. if AutoFarmConfig.CurrentTarget and isMobDead(AutoFarmConfig.CurrentTarget) then
  196. AutoFarmConfig.CurrentTarget = nil
  197. end
  198. if not AutoFarmConfig.CurrentTarget then
  199. AutoFarmConfig.CurrentTarget = findTargetMob()
  200. end
  201. local currentTarget = AutoFarmConfig.CurrentTarget
  202. if not currentTarget then
  203. setBreakFlag()
  204. end
  205. local targetRootPart = currentTarget:FindFirstChild("HumanoidRootPart") or currentTarget:FindFirstChild("HRP")
  206. if not targetRootPart then
  207. AutoFarmConfig.CurrentTarget = nil
  208. setBreakFlag()
  209. end
  210. if not humanoidRootPart then
  211. setBreakFlag()
  212. end
  213. local heightOffset = 0
  214. if AttackDirection ~= "Up" then
  215. if AttackDirection == "Down" then
  216. heightOffset = -AutoFarmConfig.HeightOffset
  217. end
  218. else
  219. heightOffset = AutoFarmConfig.HeightOffset
  220. end
  221. humanoidRootPart.CFrame = CFrame.new(targetRootPart.Position.X, targetRootPart.Position.Y + heightOffset, targetRootPart.Position.Z) * CFrame.new(0, 0, AutoFarmConfig.Distance)
  222. if AttackDirection == "Up" or AttackDirection == "Down" then
  223. humanoid.PlatformStand = true
  224. else
  225. humanoid.PlatformStand = false
  226. end
  227. humanoidRootPart.Velocity = Vector3.new(0, 0, 0)
  228. humanoidRootPart.RotVelocity = Vector3.new(0, 0, 0)
  229. rotateCharacter()
  230. task.wait()
  231. rotateCharacter()
  232. attack()
  233. elseif humanoid then
  234. humanoid.PlatformStand = false
  235. end
  236. if shouldBreak then
  237. break
  238. end
  239. end
  240. end)
  241.  
  242. local CharacterSettings = {
  243. WalkSpeed = 16,
  244. JumpPower = 50,
  245. AntiAFKEnabled = false,
  246. LoopEnabled = true,
  247. ESPEnabled = false,
  248. FullBrightEnabled = false
  249. }
  250.  
  251. local Connections = {
  252. CharacterAdded = nil,
  253. AntiAFK = nil,
  254. Loop = nil,
  255. ESP = {}
  256. }
  257.  
  258. local function getHumanoid()
  259. local character = LocalPlayer.Character
  260. if character then
  261. character = character:FindFirstChildOfClass("Humanoid")
  262. end
  263. return character
  264. end
  265.  
  266. local function applyCharacterSettings()
  267. local humanoid = getHumanoid()
  268. if humanoid then
  269. humanoid.UseJumpPower = true
  270. humanoid.WalkSpeed = CharacterSettings.WalkSpeed
  271. humanoid.JumpPower = CharacterSettings.JumpPower
  272. end
  273. end
  274.  
  275. if Connections.CharacterAdded then
  276. Connections.CharacterAdded:Disconnect()
  277. end
  278. Connections.CharacterAdded = LocalPlayer.CharacterAdded:Connect(function()
  279. task.wait(0.3)
  280. applyCharacterSettings()
  281. end)
  282.  
  283. local function enableAntiAFK()
  284. if not Connections.AntiAFK then
  285. Connections.AntiAFK = LocalPlayer.Idled:Connect(function()
  286. VirtualUser:Button2Down(Vector2.new(0, 0), workspace.CurrentCamera and workspace.CurrentCamera.CFrame or CFrame.new())
  287. task.wait(1)
  288. VirtualUser:Button2Up(Vector2.new(0, 0), workspace.CurrentCamera and workspace.CurrentCamera.CFrame or CFrame.new())
  289. end)
  290. end
  291. end
  292.  
  293. local function disableAntiAFK()
  294. if Connections.AntiAFK then
  295. Connections.AntiAFK:Disconnect()
  296. Connections.AntiAFK = nil
  297. end
  298. end
  299.  
  300. local function setupESP(player)
  301. local function createESP(character)
  302. if CharacterSettings.ESPEnabled then
  303. if character then
  304. local iterator, state, index = ipairs(character:GetChildren())
  305. while true do
  306. local child
  307. index, child = iterator(state, index)
  308. if index == nil then
  309. break
  310. end
  311. if child:IsA("Highlight") and child.Name == "xdayoungxESP" then
  312. child:Destroy()
  313. end
  314. end
  315. local highlight = Instance.new("Highlight")
  316. highlight.Name = "xdayoungxESP"
  317. highlight.FillColor = Color3.fromRGB(255, 0, 0)
  318. highlight.OutlineColor = Color3.fromRGB(255, 255, 255)
  319. highlight.DepthMode = Enum.HighlightDepthMode.AlwaysOnTop
  320. highlight.Adornee = character
  321. highlight.Parent = character
  322. Connections.ESP[player] = highlight
  323. end
  324. else
  325. return
  326. end
  327. end
  328. if player.Character then
  329. createESP(player.Character)
  330. end
  331. player.CharacterAdded:Connect(function(newCharacter)
  332. task.wait(0.5)
  333. createESP(newCharacter)
  334. end)
  335. end
  336.  
  337. local function enableESP()
  338. local playersService = Players
  339. local iterator, state, key = pairs(playersService:GetPlayers())
  340. while true do
  341. local player
  342. key, player = iterator(state, key)
  343. if key == nil then
  344. break
  345. end
  346. if player ~= LocalPlayer then
  347. setupESP(player)
  348. end
  349. end
  350. Connections.PlayerAdded = Players.PlayerAdded:Connect(function(newPlayer)
  351. if newPlayer ~= LocalPlayer then
  352. setupESP(newPlayer)
  353. end
  354. end)
  355. Connections.PlayerRemoving = Players.PlayerRemoving:Connect(function(removingPlayer)
  356. if Connections.ESP[removingPlayer] then
  357. Connections.ESP[removingPlayer]:Destroy()
  358. Connections.ESP[removingPlayer] = nil
  359. end
  360. end)
  361. end
  362.  
  363. local function disableESP()
  364. local iterator, state, key = pairs(Connections.ESP)
  365. while true do
  366. local espHighlight
  367. key, espHighlight = iterator(state, key)
  368. if key == nil then
  369. break
  370. end
  371. espHighlight:Destroy()
  372. end
  373. Connections.ESP = {}
  374. if Connections.PlayerAdded then
  375. Connections.PlayerAdded:Disconnect()
  376. end
  377. if Connections.PlayerRemoving then
  378. Connections.PlayerRemoving:Disconnect()
  379. end
  380. end
  381.  
  382. local OriginalLightingSettings = {
  383. Brightness = Lighting.Brightness,
  384. ClockTime = Lighting.ClockTime,
  385. FogEnd = Lighting.FogEnd,
  386. GlobalShadows = Lighting.GlobalShadows
  387. }
  388.  
  389. local FullBrightConnection = nil
  390.  
  391. local function enableFullBright()
  392. if not FullBrightConnection then
  393. FullBrightConnection = RunService.RenderStepped:Connect(function()
  394. Lighting.Brightness = 2
  395. Lighting.ClockTime = 12
  396. Lighting.FogEnd = 1000000
  397. Lighting.GlobalShadows = false
  398. end)
  399. end
  400. end
  401.  
  402. local function disableFullBright()
  403. if FullBrightConnection then
  404. FullBrightConnection:Disconnect()
  405. FullBrightConnection = nil
  406. end
  407. local iterator, state, key = pairs(OriginalLightingSettings)
  408. while true do
  409. local value
  410. key, value = iterator(state, key)
  411. if key == nil then
  412. break
  413. end
  414. Lighting[key] = value
  415. end
  416. end
  417.  
  418. RunService.Stepped:Connect(function()
  419. local humanoid = CharacterSettings.LoopEnabled and getHumanoid()
  420. if humanoid then
  421. if humanoid.WalkSpeed ~= CharacterSettings.WalkSpeed then
  422. humanoid.WalkSpeed = CharacterSettings.WalkSpeed
  423. end
  424. if humanoid.UseJumpPower and humanoid.JumpPower ~= CharacterSettings.JumpPower then
  425. humanoid.JumpPower = CharacterSettings.JumpPower
  426. end
  427. end
  428. end)
  429.  
  430.  
  431. local AutoFarmSection = MainTab:CreateSection("자동 사냥")
  432.  
  433. local AutoFarmToggle = MainTab:CreateToggle({
  434. Name = "자동 사냥",
  435. CurrentValue = false,
  436. Flag = "AutoFarmToggle",
  437. Callback = function(Value)
  438. AutoFarmConfig.Enabled = Value
  439. AutoFarmConfig.CurrentTarget = nil
  440. local humanoid = not Value and getCharacter():FindFirstChildOfClass("Humanoid")
  441. if humanoid then
  442. humanoid.PlatformStand = false
  443. end
  444. end,
  445. })
  446.  
  447. local MobDropdown = MainTab:CreateDropdown({
  448. Name = "적 선택",
  449. Options = MobList,
  450. CurrentOption = {},
  451. MultipleOptions = false,
  452. Flag = "MobDropdown",
  453. Callback = function(Option)
  454. if type(Option) == "table" and #Option > 0 then
  455. AutoFarmConfig.TargetMob = MobMap[Option[1]]
  456. elseif type(Option) == "string" then
  457. AutoFarmConfig.TargetMob = MobMap[Option]
  458. else
  459. AutoFarmConfig.TargetMob = nil
  460. end
  461. AutoFarmConfig.CurrentTarget = nil
  462. end,
  463. })
  464.  
  465. MainTab:CreateButton({
  466. Name = "몹 목록 새로고침",
  467. Callback = function()
  468. local newMobList, newMobMap = getMobList()
  469. MobMap = newMobMap
  470. MobList = newMobList
  471. if MobDropdown then
  472. local dropdownInstance = MobDropdown.Instance or (MobDropdown and MobDropdown._Instance)
  473. if dropdownInstance then
  474. dropdownInstance:Destroy()
  475. elseif MobDropdown.Destroy then
  476. MobDropdown:Destroy()
  477. end
  478. end
  479.  
  480. -- 드롭다운 재생성
  481. MobDropdown = MainTab:CreateDropdown({
  482. Name = "적 선택",
  483. Options = MobList,
  484. CurrentOption = {},
  485. MultipleOptions = false,
  486. Flag = "MobDropdown",
  487. Callback = function(Option)
  488. if type(Option) == "table" and #Option > 0 then
  489. AutoFarmConfig.TargetMob = MobMap[Option[1]]
  490. elseif type(Option) == "string" then
  491. AutoFarmConfig.TargetMob = MobMap[Option]
  492. else
  493. AutoFarmConfig.TargetMob = nil
  494. end
  495. AutoFarmConfig.CurrentTarget = nil
  496. end,
  497. })
  498. end,
  499. })
  500.  
  501. local DistanceSlider = MainTab:CreateSlider({
  502. Name = "거리 (Z축)",
  503. Range = {1, 20},
  504. Increment = 1,
  505. CurrentValue = 4,
  506. Flag = "DistanceSlider",
  507. Callback = function(Value)
  508. AutoFarmConfig.Distance = Value
  509. end,
  510. })
  511.  
  512. local HeightOffsetSlider = MainTab:CreateSlider({
  513. Name = "수직 오프셋 (위/아래)",
  514. Range = {1, 20},
  515. Increment = 1,
  516. CurrentValue = 5,
  517. Flag = "HeightOffsetSlider",
  518. Callback = function(Value)
  519. AutoFarmConfig.HeightOffset = Value
  520. end,
  521. })
  522.  
  523. local AttackDirectionDropdown = MainTab:CreateDropdown({
  524. Name = "공격 방향",
  525. Options = {"Front", "Back", "Up", "Down"},
  526. CurrentOption = {"Front"},
  527. MultipleOptions = false,
  528. Flag = "AttackDirectionDropdown",
  529. Callback = function(Option)
  530. if type(Option) == "table" then
  531. AttackDirection = Option[1]
  532. else
  533. AttackDirection = Option
  534. end
  535. end,
  536. })
  537.  
  538. local CharacterSection = SettingsTab:CreateSection("캐릭터")
  539.  
  540. local WalkSpeedSlider = SettingsTab:CreateSlider({
  541. Name = "이동 속도",
  542. Range = {10, 200},
  543. Increment = 1,
  544. CurrentValue = 16,
  545. Flag = "WalkSpeedSlider",
  546. Callback = function(Value)
  547. CharacterSettings.WalkSpeed = Value
  548. applyCharacterSettings()
  549. end,
  550. })
  551.  
  552. local JumpPowerSlider = SettingsTab:CreateSlider({
  553. Name = "점프력",
  554. Range = {20, 300},
  555. Increment = 1,
  556. CurrentValue = 50,
  557. Flag = "JumpPowerSlider",
  558. Callback = function(Value)
  559. CharacterSettings.JumpPower = Value
  560. applyCharacterSettings()
  561. end,
  562. })
  563.  
  564. local AntiAFKToggle = SettingsTab:CreateToggle({
  565. Name = "AFK 방지",
  566. CurrentValue = false,
  567. Flag = "AntiAFKToggle",
  568. Callback = function(Value)
  569. CharacterSettings.AntiAFKEnabled = Value
  570. if Value then
  571. enableAntiAFK()
  572. else
  573. disableAntiAFK()
  574. end
  575. end,
  576. })
  577.  
  578. local LoopToggle = SettingsTab:CreateToggle({
  579. Name = "이동 속도 강제 적용",
  580. CurrentValue = true,
  581. Flag = "LoopToggle",
  582. Callback = function(Value)
  583. CharacterSettings.LoopEnabled = Value
  584. end,
  585. })
  586.  
  587. local ESPToggle = SettingsTab:CreateToggle({
  588. Name = "플레이어 ESP",
  589. CurrentValue = false,
  590. Flag = "ESPToggle",
  591. Callback = function(Value)
  592. CharacterSettings.ESPEnabled = Value
  593. if Value then
  594. enableESP()
  595. else
  596. disableESP()
  597. end
  598. end,
  599. })
  600.  
  601. local FullBrightToggle = SettingsTab:CreateToggle({
  602. Name = "밝기 최대",
  603. CurrentValue = false,
  604. Flag = "FullBrightToggle",
  605. Callback = function(Value)
  606. CharacterSettings.FullBrightEnabled = Value
  607. if Value then
  608. enableFullBright()
  609. else
  610. disableFullBright()
  611. end
  612. end,
  613. })
  614.  
  615. local InfoSection = SettingsTab:CreateSection("정보")
  616. SettingsTab:CreateParagraph({
  617. Title = "xdayoungx Hub | RPG",
  618. Content = "RPG 게임용 자동 사냥 스크립트입니다.\n\n기능:\n- 자동 사냥\n- 이동 속도/점프력 조절\n- AFK 방지\n- 플레이어 ESP\n- 밝기 최대\n\n제작자: xdayoungx"
  619. })
  620.  
  621. local ControlsSection = SettingsTab:CreateSection("컨트롤")
  622. SettingsTab:CreateKeybind({
  623. Name = "UI 토글",
  624. CurrentKeybind = "RightShift",
  625. HoldToInteract = false,
  626. Flag = "UIKeybind",
  627. Callback = function(Keybind)
  628. end,
  629. })
  630.  
  631. SettingsTab:CreateButton({
  632. Name = "GUI 제거",
  633. Callback = function()
  634. Luna:Destroy()
  635. end,
  636. })
  637.  
  638. applyCharacterSettings()
  639.  
  640. Luna:Notification({
  641. Title = "xdayoungx Hub 로드 완료",
  642. Content = "스크립트가 성공적으로 로드되었습니다!",
  643. Icon = "check_circle",
  644. ImageSource = "Material"
  645. })
  646.  
Advertisement
Add Comment
Please, Sign In to add comment