8rcj

DIG by chatgpt2

Jun 27th, 2025 (edited)
245
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 31.23 KB | None | 0 0
  1. local Rayfield = loadstring(game:HttpGet('https://sirius.menu/rayfield'))()
  2. local Window = Rayfield:CreateWindow({
  3. Name = "TripleDomm DIG",
  4. Icon = 0,
  5. LoadingTitle = "Rayfield Interface Suite",
  6. LoadingSubtitle = "by Sirius",
  7. ShowText = "Rayfield",
  8. Theme = "Default",
  9. ToggleUIKeybind = "K",
  10. DisableRayfieldPrompts = false,
  11. DisableBuildWarnings = false,
  12. ConfigurationSaving = {
  13. Enabled = true,
  14. FolderName = nil,
  15. FileName = "Big Hub"
  16. },
  17. Discord = {
  18. Enabled = false,
  19. Invite = "noinvitelink",
  20. RememberJoins = true
  21. },
  22. KeySystem = false,
  23. KeySettings = {
  24. Title = "Untitled",
  25. Subtitle = "Key System",
  26. Note = "No method of obtaining the key is provided",
  27. FileName = "Key",
  28. SaveKey = true,
  29. GrabKeyFromSite = false,
  30. Key = {"Hello"}
  31. }
  32. })
  33.  
  34. local Players = game:GetService("Players")
  35. local TeleportService = game:GetService("TeleportService")
  36. local TeleportCheck = false
  37. local KeepMyScript = true
  38.  
  39. Players.LocalPlayer.OnTeleport:Connect(function(State)
  40. if KeepMyScript and not TeleportCheck and queue_on_teleport then
  41. TeleportCheck = true
  42. queue_on_teleport([[
  43. loadstring(game:HttpGet("https://pastebin.com/raw/NWsEwzgz"))()
  44. ]])
  45. end
  46. end)
  47.  
  48.  
  49. local player = game:GetService("Players").LocalPlayer
  50. local gui = player:WaitForChild("PlayerGui")
  51. local runService = game:GetService("RunService")
  52. local userInput = game:GetService("UserInputService")
  53.  
  54. -- DIGGING TAB
  55.  
  56. local Tab = Window:CreateTab("DIGGING", 4483362458)
  57. local noDigFolder = game:GetService("Workspace").World.Zones["_NoDig"]
  58.  
  59. local autoDeleteEnabled = false
  60. local deleteConnection
  61.  
  62. -- For the holes so u could dig in the same place
  63.  
  64. local function clearNoDig()
  65. for _, part in ipairs(noDigFolder:GetChildren()) do
  66. if part:IsA("BasePart") then
  67. part:Destroy()
  68. end
  69. end
  70. end
  71.  
  72. local ToggleNoDigClear = Tab:CreateToggle({
  73. Name = "Auto Clear _NoDig",
  74. CurrentValue = false,
  75. Flag = "ToggleNoDigClear",
  76. Callback = function(Value)
  77. autoDeleteEnabled = Value
  78. if Value then
  79. print("[AutoClear]: ENABLED")
  80. local timer = 0
  81. deleteConnection = game:GetService("RunService").Heartbeat:Connect(function(dt)
  82. if autoDeleteEnabled then
  83. timer = timer + dt
  84. if timer >= 0.5 then
  85. clearNoDig()
  86. timer = 0
  87. end
  88. end
  89. end)
  90. else
  91. print("[AutoClear]: DISABLED")
  92. if deleteConnection then
  93. deleteConnection:Disconnect()
  94. deleteConnection = nil
  95. end
  96. end
  97. end,
  98. })
  99.  
  100. -- The digging part so ur bar stays in the strong area
  101.  
  102. local runService = game:GetService("RunService")
  103. local player = game:GetService("Players").LocalPlayer
  104. local gui = player:WaitForChild("PlayerGui")
  105.  
  106. local autoLockEnabled = false
  107. local lockConnection
  108.  
  109. local autoClickEnabled = false
  110. local clickConnection
  111.  
  112. local function startLock()
  113. local holder = gui:WaitForChild("Dig"):WaitForChild("Safezone"):WaitForChild("Holder")
  114. local playerBar = holder:WaitForChild("PlayerBar")
  115. local areaStrong = holder:WaitForChild("Area_Strong")
  116.  
  117. if lockConnection then
  118. lockConnection:Disconnect()
  119. end
  120.  
  121. lockConnection = runService.RenderStepped:Connect(function()
  122. if autoLockEnabled then
  123. playerBar.Position = areaStrong.Position
  124. end
  125. end)
  126. end
  127.  
  128. -- ✅ Updated, slower clicker:
  129. local function startAutoClick()
  130. if clickConnection then
  131. clickConnection:Disconnect()
  132. end
  133.  
  134. local clickInterval = 0.15
  135. local timer = 0
  136.  
  137. clickConnection = runService.Heartbeat:Connect(function(dt)
  138. if autoClickEnabled then
  139. timer = timer + dt
  140. if timer >= clickInterval then
  141. mouse1click()
  142. timer = 0
  143. end
  144. end
  145. end)
  146. end
  147.  
  148. -- Watch for Dig UI appearing
  149.  
  150. gui.ChildAdded:Connect(function(child)
  151. if child.Name == "Dig" and autoLockEnabled then
  152. task.defer(startLock)
  153. end
  154. end)
  155.  
  156. -- Start immediately if already visible
  157. if gui:FindFirstChild("Dig") and autoLockEnabled then
  158. task.defer(startLock)
  159. end
  160.  
  161. local ToggleDig = Tab:CreateToggle({
  162. Name = "DIGGING",
  163. CurrentValue = false,
  164. Flag = "Toggle1",
  165. Callback = function(Value)
  166. autoLockEnabled = Value
  167. if Value then
  168. print("[AutoLock]: ENABLED")
  169. startLock()
  170. else
  171. print("[AutoLock]: DISABLED")
  172. if lockConnection then
  173. lockConnection:Disconnect()
  174. lockConnection = nil
  175. end
  176. end
  177. end,
  178. })
  179.  
  180. local ReplicatedStorage = game:GetService("ReplicatedStorage")
  181. local Remotes = ReplicatedStorage:WaitForChild("Remotes")
  182.  
  183. local DigFinished = Remotes:WaitForChild("Dig_Finished")
  184. local TotemGetStacks = Remotes:WaitForChild("Totem_GetStacks")
  185.  
  186. local vector = vector or {}
  187. if not vector.create then
  188. vector.create = Vector3.new
  189. end
  190.  
  191. local Button = Tab:CreateButton({
  192. Name = "To instantly dig use when u know how",
  193. Callback = function()
  194. local success, err = pcall(function()
  195. local args = {
  196. 0,
  197. {
  198. {
  199. Orientation = Vector3.zero,
  200. Transparency = 1,
  201. Name = "PositionPart",
  202. Position = vector.create(2072.244873046875, 108.66889190673828, -333.8109130859375),
  203. Color = Color3.new(0.6392157077789307, 0.6352941393852234, 0.6470588445663452),
  204. Material = Enum.Material.Plastic,
  205. Shape = Enum.PartType.Block,
  206. Size = vector.create(0.10000000149011612, 0.10000000149011612, 0.10000000149011612)
  207. },
  208. {
  209. Orientation = vector.create(0, 90, 90),
  210. Transparency = 0,
  211. Name = "CenterCylinder",
  212. Position = vector.create(2072.244873046875, 108.61888885498047, -333.8109130859375),
  213. Color = Color3.new(0.4627451002597809, 0.3921568691730499, 0.29019609093666077),
  214. Material = Enum.Material.Pebble,
  215. Shape = Enum.PartType.Cylinder,
  216. Size = vector.create(0.20000000298023224, 2.839409828186035, 2.975950002670288)
  217. },
  218. {
  219. Orientation = vector.create(-24, 45.00400161743164, 0),
  220. Transparency = 0,
  221. Name = "Rock/1",
  222. Position = vector.create(2073.154296875, 108.3316879272461, -332.90155029296875),
  223. Color = Color3.new(0.6039215922355652, 0.5098039507865906, 0.3803921639919281),
  224. Material = Enum.Material.Pebble,
  225. Shape = Enum.PartType.Block,
  226. Size = vector.create(2.598910331726074, 1.8621101379394531, 1.3048908710479736)
  227. },
  228. {
  229. Orientation = vector.create(-15, 85, 0),
  230. Transparency = 0,
  231. Name = "Rock/2",
  232. Position = vector.create(2073.4677734375, 108.26739501953125, -333.7039489746094),
  233. Color = Color3.new(0.6039215922355652, 0.5098039507865906, 0.3803921639919281),
  234. Material = Enum.Material.Pebble,
  235. Shape = Enum.PartType.Block,
  236. Size = vector.create(2.6383888721466064, 1.8621101379394531, 1.303166389465332)
  237. },
  238. {
  239. Orientation = vector.create(-26, 125, 0),
  240. Transparency = 0,
  241. Name = "Rock/3",
  242. Position = vector.create(2073.30810546875, 108.34716033935547, -334.55511474609375),
  243. Color = Color3.new(0.6039215922355652, 0.5098039507865906, 0.3803921639919281),
  244. Material = Enum.Material.Pebble,
  245. Shape = Enum.PartType.Block,
  246. Size = vector.create(2.554736375808716, 1.8621101379394531, 1.4057711362838745)
  247. },
  248. {
  249. Orientation = vector.create(-33, 164.9929962158203, 0),
  250. Transparency = 0,
  251. Name = "Rock/4",
  252. Position = vector.create(2072.590087890625, 108.40425872802734, -335.098876953125),
  253. Color = Color3.new(0.6039215922355652, 0.5098039507865906, 0.3803921639919281),
  254. Material = Enum.Material.Pebble,
  255. Shape = Enum.PartType.Block,
  256. Size = vector.create(1.338829517364502, 1.8621101379394531, 1.166784405708313)
  257. },
  258. {
  259. Orientation = vector.create(-18, -154.9980010986328, 0),
  260. Transparency = 0,
  261. Name = "Rock/5",
  262. Position = vector.create(2071.717529296875, 108.28778839111328, -334.9422607421875),
  263. Color = Color3.new(0.6039215922355652, 0.5098039507865906, 0.3803921639919281),
  264. Material = Enum.Material.Pebble,
  265. Shape = Enum.PartType.Block,
  266. Size = vector.create(1.258687973022461, 1.8621101379394531, 1.2195113897323608)
  267. },
  268. {
  269. Orientation = vector.create(-27, -115, 0),
  270. Transparency = 0,
  271. Name = "Rock/6",
  272. Position = vector.create(2071.06396484375, 108.35504150390625, -334.36163330078125),
  273. Color = Color3.new(0.6039215922355652, 0.5098039507865906, 0.3803921639919281),
  274. Material = Enum.Material.Pebble,
  275. Shape = Enum.PartType.Block,
  276. Size = vector.create(2.5018868446350098, 1.8621101379394531, 1.2584688663482666)
  277. },
  278. {
  279. Orientation = vector.create(-26, -75, 0),
  280. Transparency = 0,
  281. Name = "Rock/7",
  282. Position = vector.create(2070.99169921875, 108.34716033935547, -333.4751281738281),
  283. Color = Color3.new(0.6039215922355652, 0.5098039507865906, 0.3803921639919281),
  284. Material = Enum.Material.Pebble,
  285. Shape = Enum.PartType.Block,
  286. Size = vector.create(2.6294732093811035, 1.8621101379394531, 1.2577382326126099)
  287. },
  288. {
  289. Orientation = vector.create(-33, -35.00699996948242, 0),
  290. Transparency = 0,
  291. Name = "Rock/8",
  292. Position = vector.create(2071.47998046875, 108.40425872802734, -332.71868896484375),
  293. Color = Color3.new(0.6039215922355652, 0.5098039507865906, 0.3803921639919281),
  294. Material = Enum.Material.Pebble,
  295. Shape = Enum.PartType.Block,
  296. Size = vector.create(2.3612060546875, 1.8621101379394531, 1.4114060401916504)
  297. },
  298. {
  299. Orientation = vector.create(-23, 5.000999927520752, 0),
  300. Transparency = 0,
  301. Name = "Rock/9",
  302. Position = vector.create(2072.356689453125, 108.3240966796875, -332.53570556640625),
  303. Color = Color3.new(0.6039215922355652, 0.5098039507865906, 0.3803921639919281),
  304. Material = Enum.Material.Pebble,
  305. Shape = Enum.PartType.Block,
  306. Size = vector.create(2.568817377090454, 1.8621101379394531, 1.3472718000411987)
  307. },
  308. }
  309. }
  310.  
  311. local ReplicatedStorage = game:GetService("ReplicatedStorage")
  312. local Remotes = ReplicatedStorage:WaitForChild("Remotes")
  313. local DigFinished = Remotes:WaitForChild("Dig_Finished")
  314. DigFinished:FireServer(unpack(args))
  315. end)
  316. if not success then
  317. warn("Error firing Dig_Finished remote: "..tostring(err))
  318. end
  319. end,
  320. })
  321.  
  322. local isRunning = false
  323.  
  324. local Toggle = Tab:CreateToggle({
  325. Name = "Boss Hit Toggle",
  326. CurrentValue = false,
  327. Flag = "ToggleBossHit",
  328. Callback = function(Value)
  329. if Value then
  330. if isRunning then return end -- prevent multiple loops
  331. isRunning = true
  332. spawn(function()
  333. while isRunning do
  334. local success, err = pcall(function()
  335. local args = { true }
  336. local ReplicatedStorage = game:GetService("ReplicatedStorage")
  337. local Remotes = ReplicatedStorage:WaitForChild("Remotes")
  338. local DigBossOnHit = Remotes:WaitForChild("Dig_Boss_OnHit")
  339. DigBossOnHit:FireServer(unpack(args))
  340. end)
  341. if not success then
  342. warn("Error firing Dig_Boss_OnHit remote: "..tostring(err))
  343. end
  344. wait() -- wait 1 second between fires
  345. end
  346. end)
  347. else
  348. isRunning = false -- stop the loop
  349. end
  350. end,
  351. })
  352.  
  353.  
  354.  
  355. -- Autoclicker since i cant replicate the remote it has to be clicking i think
  356.  
  357. local AutoClickKeybind = Tab:CreateKeybind({
  358. Name = "Toggle Auto Click",
  359. CurrentKeybind = "Q",
  360. HoldToInteract = false,
  361. Flag = "Keybind1",
  362. Callback = function(isHeld)
  363. -- Toggle autoClickEnabled when key is pressed (not held)
  364. if not isHeld then
  365. autoClickEnabled = not autoClickEnabled
  366. if autoClickEnabled then
  367. print("[AutoClick]: ENABLED")
  368. startAutoClick()
  369. else
  370. print("[AutoClick]: DISABLED")
  371. if clickConnection then
  372. clickConnection:Disconnect()
  373. clickConnection = nil
  374. end
  375. end
  376. end
  377. end,
  378. })
  379.  
  380. -- PIZZA DELIVERY TAB
  381.  
  382. local Tab2 = Window:CreateTab("PIZZA DELIVERY", 4483362458)
  383.  
  384. local pizzaRunning = false
  385.  
  386. local startCFrame = CFrame.new(
  387. 4170.79932, 1196.58936, -4325.8584,
  388. -0.355390698, 3.93950508e-08, 0.934717834,
  389. 1.12602594e-08, 1, -3.78651777e-08,
  390. -0.934717834, -2.93176683e-09, -0.355390698
  391. )
  392.  
  393. local function pizzaDeliveryLoop()
  394. local hrp = player.Character and player.Character:FindFirstChild("HumanoidRootPart")
  395. local questName = "Pizza Penguin"
  396. while pizzaRunning do
  397. if not hrp then
  398. hrp = player.Character and player.Character:FindFirstChild("HumanoidRootPart")
  399. if not hrp then
  400. task.wait(1)
  401. continue
  402. end
  403. end
  404.  
  405. game:GetService("ReplicatedStorage"):WaitForChild("DialogueRemotes"):WaitForChild("StartInfiniteQuest"):InvokeServer(questName)
  406. task.wait(0.5)
  407.  
  408. local customers = game:GetService("Workspace"):WaitForChild("Active"):WaitForChild("PizzaCustomers")
  409. local customer = customers:FindFirstChild("Valued Customer")
  410. if customer and customer:FindFirstChild("HumanoidRootPart") then
  411. hrp.CFrame = customer.HumanoidRootPart.CFrame
  412. end
  413. task.wait(2)
  414.  
  415. game:GetService("ReplicatedStorage"):WaitForChild("Remotes"):WaitForChild("Quest_DeliverPizza"):InvokeServer()
  416. task.wait(1)
  417.  
  418. game:GetService("ReplicatedStorage"):WaitForChild("DialogueRemotes"):WaitForChild("CompleteInfiniteQuest"):InvokeServer(questName)
  419. task.wait(0.5)
  420.  
  421. game:GetService("ReplicatedStorage"):WaitForChild("DialogueRemotes"):WaitForChild("DialogueFinish"):FireServer(questName, false)
  422. task.wait(1)
  423.  
  424. if hrp then
  425. hrp.CFrame = startCFrame
  426. end
  427. task.wait(30)
  428. end
  429. end
  430.  
  431. -- Actual toggle for pizza 30s
  432.  
  433. local TogglePizza = Tab2:CreateToggle({
  434. Name = "Pizza Delivery 30s cooldown",
  435. CurrentValue = false,
  436. Flag = "Toggle2",
  437. Callback = function(Value)
  438. pizzaRunning = Value
  439. if Value then
  440. print("[AutoPizza]: ON")
  441. spawn(pizzaDeliveryLoop)
  442. else
  443. print("[AutoPizza]: OFF")
  444. end
  445. end,
  446. })
  447.  
  448. -- pizza delivery with auto rejoin
  449.  
  450. local Toggle = Tab2:CreateToggle({
  451. Name = "Auto Pizza + Rejoin Fast",
  452. CurrentValue = true,
  453. Flag = "AutoPizzaRejoin",
  454. Callback = function(Value)
  455. if Value then
  456. local player = game:GetService("Players").LocalPlayer
  457. local hrp = player.Character:WaitForChild("HumanoidRootPart")
  458.  
  459. local startCFrame = CFrame.new(
  460. 4170.79932, 1196.58936, -4325.8584,
  461. -0.355390698, 3.93950508e-08, 0.934717834,
  462. 1.12602594e-08, 1, -3.78651777e-08,
  463. -0.934717834, -2.93176683e-09, -0.355390698
  464. )
  465.  
  466. local questName = "Pizza Penguin"
  467.  
  468. spawn(function()
  469. -- Start quest
  470. game:GetService("ReplicatedStorage"):WaitForChild("DialogueRemotes"):WaitForChild("StartInfiniteQuest"):InvokeServer(questName)
  471. task.wait(0.5)
  472.  
  473. -- Teleport to customer
  474. local customers = game:GetService("Workspace"):WaitForChild("Active"):WaitForChild("PizzaCustomers")
  475. local customer = customers:WaitForChild("Valued Customer", 5)
  476. if customer and customer:FindFirstChild("HumanoidRootPart") then
  477. hrp.CFrame = customer.HumanoidRootPart.CFrame
  478. end
  479. task.wait(2)
  480.  
  481. -- Deliver pizza
  482. game:GetService("ReplicatedStorage"):WaitForChild("Remotes"):WaitForChild("Quest_DeliverPizza"):InvokeServer()
  483. task.wait(1)
  484.  
  485. -- Complete quest
  486. game:GetService("ReplicatedStorage"):WaitForChild("DialogueRemotes"):WaitForChild("CompleteInfiniteQuest"):InvokeServer(questName)
  487. task.wait(0.5)
  488.  
  489. -- Finish dialog
  490. game:GetService("ReplicatedStorage"):WaitForChild("DialogueRemotes"):WaitForChild("DialogueFinish"):FireServer(questName, false)
  491. task.wait(0.5)
  492.  
  493. -- Teleport back
  494. hrp.CFrame = startCFrame
  495. task.wait(1)
  496.  
  497. -- Rejoin
  498. game:GetService("TeleportService"):Teleport(game.PlaceId, player)
  499. end)
  500. end
  501. end,
  502. })
  503.  
  504. -- this should keep it toggled after u have toggled it once
  505.  
  506. task.delay(1, function()
  507. local savedValue = Rayfield.Flags["AutoPizzaRejoin"] and Rayfield.Flags["AutoPizzaRejoin"].CurrentValue
  508. if savedValue then
  509. Toggle:Set(true) -- This re-enables the toggle automatically on script load
  510. end
  511. end)
  512.  
  513. -- UI stuff
  514.  
  515. local Tab3 = Window:CreateTab("UI", 4483362458)
  516. local Button = Tab3:CreateButton({
  517. Name = "DESTROY UI",
  518. Callback = function()
  519. Rayfield:Destroy()
  520. end,
  521. })
  522. local isVisible = true -- assume UI starts visible
  523.  
  524. local Keybind = Tab3:CreateKeybind({
  525. Name = "Open/Close UI",
  526. CurrentKeybind = "LeftControl",
  527. HoldToInteract = false,
  528. Flag = "Keybind1",
  529. Callback = function()
  530. isVisible = not isVisible
  531. Rayfield:SetVisibility(isVisible)
  532. end,
  533. })
  534.  
  535. local player = game:GetService("Players").LocalPlayer
  536.  
  537. -- Teleports (town tp not made)
  538.  
  539. local Tab4 = Window:CreateTab("Teleports", 4483362458)
  540.  
  541. local teleportLocations = {
  542. ["Cole Blood"] = CFrame.new(2526.09497, 83.575325, 1308.01697, 0.782224655, 1.42033113e-31, 0.622997046, 1.6511123e-31, 1, 2.06727521e-32, -0.622997224, -8.66930845e-32, 0.782224238),
  543. ["Kira Pale"] = CFrame.new(-6606.70654, 247.139862, -2412.20605, 0.351335585, 0.00844963733, -0.936211526, 0, 0.99995929, 0.00902498327, 0.936249614, -0.00317079783, 0.35132128),
  544. ["Billy Joe"] = CFrame.new(3651.62744, 82.903244, 1451.28918, 0.779215336, -0.0327569544, -0.625899732, 0, 0.998633265, -0.0522642732, 0.62675631, 0.0407251269, 0.77815038),
  545. ["Tom Baker"] = CFrame.new(5576.74512, 250.017868, -68.0017166, 0.88154614, -0.0194635931, -0.471696436, 0.0308243185, 0.999390721, 0.0163692627, 0.471090436, -0.0289699789, 0.881609023),
  546. ["Sydney"] = CFrame.new(763.248047, 265.35199, 646.584839, 0.294985026, -0.289372116, 0.910630524, -4.68525929e-09, 0.953038752, 0.30284822, -0.955501854, -0.0893357098, 0.281132162),
  547. ["Silver"] = CFrame.new(3928.29858, 82.403801, 1606.29199, -0.0871575847, 0, 0.996194601, 0, 1, 0, -0.996194601, 0, -0.0871575847),
  548. ["Mr.Salty"] = CFrame.new(-6094.73145, 117.489624, -1914.16968, -0.229179934, -0.24898307, 0.941001654, -0.080112718, 0.968277037, 0.236688629, -0.970081747, -0.0211419202, -0.241856381),
  549. ["Sam Colby"] = CFrame.new(3721.94434, 225.121933, -659.809143, -0.117471255, -0.059262231, 0.991306484, 0.0189093892, 0.997903407, 0.0618973896, -0.992896259, 0.0260161497, -0.116104349)
  550. }
  551.  
  552. local Dropdown = Tab4:CreateDropdown({
  553. Name = "NPC Teleports",
  554. Options = {"Cole Blood", "Kira Pale", "Billy Joe", "Tom Baker", "Sydney", "Silver", "Mr.Salty", "Sam Colby"},
  555. CurrentOption = "Cole Blood", -- <-- This must be a string, NOT a table!
  556. MultipleOptions = false,
  557. Flag = "Dropdown1",
  558. Callback = function(selected)
  559. print("Selected option type:", typeof(selected)) -- debug
  560.  
  561. if typeof(selected) == "table" then
  562. selected = selected[1] -- get first option if multiple sent accidentally
  563. end
  564.  
  565. local character = game.Players.LocalPlayer.Character or game.Players.LocalPlayer.CharacterAdded:Wait()
  566. local HumRoot = character:FindFirstChild("HumanoidRootPart")
  567. if not HumRoot then
  568. warn("HumanoidRootPart not found!")
  569. return
  570. end
  571.  
  572. local destination = teleportLocations[selected]
  573. if not destination then
  574. warn("No teleport destination for: "..tostring(selected))
  575. return
  576. end
  577.  
  578. print("Teleporting to "..selected)
  579. HumRoot.CFrame = destination
  580. end,
  581. })
  582.  
  583. --merchant
  584.  
  585. local Button = Tab4:CreateButton({
  586. Name = "Teleport to Traveling Merchant (if its there)",
  587. Callback = function()
  588. local player = game:GetService("Players").LocalPlayer
  589. local hrp = player.Character and player.Character:FindFirstChild("HumanoidRootPart")
  590.  
  591. if not hrp then
  592. warn("[Teleport]: HumanoidRootPart not found.")
  593. return
  594. end
  595.  
  596. local npcRoot = game:GetService("Workspace"):FindFirstChild("World")
  597. if not npcRoot then return end
  598.  
  599. local npcs = npcRoot:FindFirstChild("NPCs")
  600. local cart = npcs and npcs:FindFirstChild("Merchant Cart")
  601. local merchant = cart and cart:FindFirstChild("Traveling Merchant")
  602. local torso = merchant and merchant:FindFirstChild("Torso")
  603.  
  604. if torso then
  605. print("[Teleport]: Traveling Merchant found! Teleporting...")
  606. hrp.CFrame = torso.CFrame
  607. else
  608. warn("[Teleport]: Traveling Merchant not found.")
  609. end
  610. end,
  611. })
  612.  
  613.  
  614.  
  615. local teleportLocations = {
  616. ["Fox Town"] = CFrame.new(2085.27295, 111.495636, -399.051514, 0.945800364, -2.03127435e-08, -0.324748576, 2.2270596e-08, 1, 2.31192487e-09, 0.324748576, -9.41896339e-09, 0.945800364),
  617. ["Kira Pale"] = CFrame.new(1722.93372, 78.9500961, 55.6636696, 0.770644188, 0, 0.637265682, 0, 1, 0, -0.637265682, 0, 0.770644188),
  618. ["Billy Joe"] = CFrame.new(3651.62744, 82.903244, 1451.28918, 0.779215336, -0.0327569544, -0.625899732, 0, 0.998633265, -0.0522642732, 0.62675631, 0.0407251269, 0.77815038),
  619. ["Tom Baker"] = CFrame.new(5576.74512, 250.017868, -68.0017166, 0.88154614, -0.0194635931, -0.471696436, 0.0308243185, 0.999390721, 0.0163692627, 0.471090436, -0.0289699789, 0.881609023),
  620. ["Upper Mount Cider"] = CFrame.new(4691.39795, 1391.13928, -2324.93408, 0.929676533, 7.35528616e-08, 0.368376911, -8.39136973e-08, 1, 1.21064403e-08, -0.368376911, -4.21669419e-08, 0.929676533)
  621. }
  622.  
  623. local Dropdown = Tab4:CreateDropdown({
  624. Name = "Area Teleports not work",
  625. Options = {"Fox Town", "Kira Pale", "Billy Joe", "Tom Baker", "Sydney"},
  626. CurrentOption = "Fox Town", -- <-- This must be a string, NOT a table!
  627. MultipleOptions = false,
  628. Flag = "Dropdown1",
  629. Callback = function(selected)
  630. print("Selected option type:", typeof(selected)) -- debug
  631.  
  632. if typeof(selected) == "table" then
  633. selected = selected[1] -- get first option if multiple sent accidentally
  634. end
  635.  
  636. local character = game.Players.LocalPlayer.Character or game.Players.LocalPlayer.CharacterAdded:Wait()
  637. local HumRoot = character:FindFirstChild("HumanoidRootPart")
  638. if not HumRoot then
  639. warn("HumanoidRootPart not found!")
  640. return
  641. end
  642.  
  643. local destination = teleportLocations[selected]
  644. if not destination then
  645. warn("No teleport destination for: "..tostring(selected))
  646. return
  647. end
  648.  
  649. print("Teleporting to "..selected)
  650. HumRoot.CFrame = destination
  651. end,
  652. })
  653.  
  654. local Players = game:GetService("Players")
  655. local Workspace = game:GetService("Workspace")
  656. local player = Players.LocalPlayer
  657.  
  658. local bossFolder = Workspace:WaitForChild("Spawns"):WaitForChild("BossSpawns")
  659.  
  660. local bossNames = {
  661. "Basilisk",
  662. "Candlelight Phantom",
  663. "King Crab",
  664. "Molten Monstrosity",
  665. "Giant Spider",
  666. "Fuzzball"
  667. }
  668.  
  669. local function getAvailableBosses()
  670. local available = {}
  671.  
  672. for _, bossName in ipairs(bossNames) do
  673. local boss = bossFolder:FindFirstChild(bossName)
  674. if boss then
  675. for _, child in ipairs(boss:GetChildren()) do
  676. if string.match(child.Name, "^Node%d+$") and #child:GetChildren() > 0 then
  677. table.insert(available, bossName)
  678. break
  679. end
  680. end
  681. end
  682. end
  683.  
  684. -- Add "None" as first option
  685. table.insert(available, 1, "None")
  686.  
  687. -- Fallback if list is still empty (just "None")
  688. if #available == 1 then
  689. table.insert(available, "No Bosses Available")
  690. end
  691.  
  692. return available
  693. end
  694.  
  695. -- Create Dropdown
  696. local Dropdown = Tab4:CreateDropdown({
  697. Name = "Teleport to Boss",
  698. Options = getAvailableBosses(),
  699. CurrentOption = {"None"},
  700. MultipleOptions = false,
  701. Flag = "Dropdown1",
  702. Callback = function(Options)
  703. local selected = Options[1]
  704. if selected == "None" or selected == "No Bosses Available" then
  705. return
  706. end
  707.  
  708. local boss = bossFolder:FindFirstChild(selected)
  709. if not boss then return end
  710.  
  711. -- Find the first valid Node part with children
  712. local node
  713. for _, child in ipairs(boss:GetChildren()) do
  714. if string.match(child.Name, "^Node%d+$") and #child:GetChildren() > 0 and child:IsA("BasePart") then
  715. node = child
  716. break
  717. end
  718. end
  719.  
  720. if not node then return end
  721.  
  722. local hrp = player.Character and player.Character:FindFirstChild("HumanoidRootPart")
  723. if hrp then
  724. hrp.CFrame = node.CFrame
  725. print("✅ Teleported to boss:", selected)
  726. end
  727. end,
  728. })
  729.  
  730.  
  731.  
  732.  
  733. -- Refresh Button
  734. local RefreshButton = Tab4:CreateButton({
  735. Name = "🔄 Refresh Boss List",
  736. Callback = function()
  737. local refreshed = getAvailableBosses()
  738. Dropdown:Refresh(refreshed)
  739. print("🔁 Boss list refreshed:", table.concat(refreshed, ", "))
  740. end
  741. })
  742.  
  743.  
  744.  
  745.  
  746. local Workspace = game:GetService("Workspace")
  747. local Players = game:GetService("Players")
  748. local player = Players.LocalPlayer
  749.  
  750. local activeFolder = Workspace:WaitForChild("Active")
  751. local tab = Tab4
  752.  
  753. local meteorPositions = {}
  754.  
  755. local MeteorDropdown = tab:CreateDropdown({
  756. Name = "Teleport to Active Meteor",
  757. Options = {"No Meteors"},
  758. CurrentOption = {"No Meteors"},
  759. MultipleOptions = false,
  760. Flag = "MeteorTeleportDropdown",
  761. Callback = function(Options)
  762. local selected = Options[1]
  763. local cframe = meteorPositions[selected]
  764. if cframe then
  765. local character = player.Character or player.CharacterAdded:Wait()
  766. local hrp = character:WaitForChild("HumanoidRootPart", 3)
  767. if hrp then
  768. hrp.CFrame = cframe
  769. print("[Teleport] Moved to meteor:", selected)
  770. else
  771. warn("HumanoidRootPart not found!")
  772. end
  773. else
  774. warn("No CFrame found for meteor:", selected)
  775. end
  776. end,
  777. })
  778.  
  779. local function updateDropdown()
  780. local options = {}
  781. for name in pairs(meteorPositions) do
  782. table.insert(options, name)
  783. end
  784. if #options == 0 then
  785. options = {"No Meteors"}
  786. end
  787. MeteorDropdown:Refresh(options)
  788. end
  789.  
  790. local function onMeteorAdded(meteor)
  791. local handle = meteor:WaitForChild("Handle", 5)
  792. if handle and handle:IsA("BasePart") then
  793. meteorPositions[meteor.Name] = handle.CFrame
  794. updateDropdown()
  795. print("[Meteor] Found meteor:", meteor.Name)
  796. else
  797. warn("Meteor handle not found or invalid")
  798. end
  799. end
  800.  
  801. local function onMeteorRemoved(meteor)
  802. meteorPositions[meteor.Name] = nil
  803. updateDropdown()
  804. print("[Meteor] Removed meteor:", meteor.Name)
  805. end
  806.  
  807. local existingMeteor = activeFolder:FindFirstChild("ActiveMeteor")
  808. if existingMeteor then
  809. onMeteorAdded(existingMeteor)
  810. end
  811.  
  812. activeFolder.ChildAdded:Connect(function(child)
  813. if child.Name == "ActiveMeteor" then
  814. onMeteorAdded(child)
  815. end
  816. end)
  817.  
  818. activeFolder.ChildRemoved:Connect(function(child)
  819. if child.Name == "ActiveMeteor" then
  820. onMeteorRemoved(child)
  821. end
  822. end)
  823.  
  824. local Tab5 = Window:CreateTab("Quests", 4483362458)
  825.  
  826. local Dropdown = Tab5:CreateDropdown({
  827. Name = "Auto Claim Quest",
  828. Options = {"Cole Blood", "Mr.Salty", "Silver", "Sydney", "Tom baker", "Billy Joe", "Kira Pale"}, -- Add more NPC names here
  829. CurrentOption = {"Cole Blood"},
  830. MultipleOptions = false,
  831. Flag = "AutoClaimQuest",
  832. Callback = function(Options)
  833. local questName = Options[1]
  834.  
  835. -- Claim quest
  836. game:GetService("ReplicatedStorage"):WaitForChild("DialogueRemotes"):WaitForChild("CompleteInfiniteQuest"):InvokeServer(questName)
  837. task.wait(1)
  838.  
  839. -- Finish dialogue
  840. game:GetService("ReplicatedStorage"):WaitForChild("DialogueRemotes"):WaitForChild("DialogueFinish"):FireServer(questName, false)
  841. task.wait(1)
  842.  
  843. -- Start quest again
  844. game:GetService("ReplicatedStorage"):WaitForChild("DialogueRemotes"):WaitForChild("StartInfiniteQuest"):InvokeServer(questName)
  845. task.wait(1)
  846.  
  847. -- Finish dialogue again
  848. game:GetService("ReplicatedStorage"):WaitForChild("DialogueRemotes"):WaitForChild("DialogueFinish"):FireServer(questName, false)
  849. end,
  850. })
Advertisement
Add Comment
Please, Sign In to add comment