humarb

Prospecting

Jul 31st, 2025 (edited)
214
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.10 KB | None | 0 0
  1. local player = game:GetService("Players").LocalPlayer
  2. local character = player.Character or player.CharacterAdded:Wait()
  3.  
  4. local pan = character:WaitForChild("Plastic Pan", 5)
  5. if not pan then
  6.     warn("[ERROR] Plastic Pan tidak ditemukan!")
  7.     return
  8. end
  9.  
  10. local scripts = pan:FindFirstChild("Scripts")
  11. if not scripts then
  12.     warn("[ERROR] Folder 'Scripts' tidak ditemukan di dalam Plastic Pan.")
  13.     return
  14. end
  15.  
  16. local toggleShovel = scripts:FindFirstChild("ToggleShovelActive")
  17. local collect = scripts:FindFirstChild("Collect")
  18.  
  19. if not toggleShovel or not collect then
  20.     warn("[ERROR] RemoteEvent atau RemoteFunction tidak ditemukan!")
  21.     return
  22. end
  23.  
  24. print("[STEP] Shovel ON")
  25. pcall(function()
  26.     toggleShovel:FireServer(true)
  27. end)
  28.  
  29. wait(0.5)
  30.  
  31. print("[STEP] Collect (tanpa argumen)")
  32. pcall(function()
  33.     collect:InvokeServer()
  34. end)
  35.  
  36. wait(0.5)
  37.  
  38. print("[STEP] Collect (argumen 1)")
  39. pcall(function()
  40.     collect:InvokeServer(1)
  41. end)
  42.  
  43. wait(0.5)
  44.  
  45. print("[STEP] Shovel OFF")
  46. pcall(function()
  47.     toggleShovel:FireServer(false)
  48. end)
  49.  
  50. print("[✅ SELESAI] Dig test selesai.")
  51.  
Tags: rbx
Advertisement
Add Comment
Please, Sign In to add comment