SeanBlox

Wicked Rp Auto Collect Diamond

Apr 23rd, 2025 (edited)
291
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.90 KB | Gaming | 0 0
  1. local player = game:GetService("Players").LocalPlayer
  2. local StarterGui = game:GetService("StarterGui")
  3.  
  4. -- GUI Setup
  5. local gui = Instance.new("ScreenGui", player:WaitForChild("PlayerGui"))
  6. gui.ResetOnSpawn = false
  7.  
  8. local frame = Instance.new("Frame", gui)
  9. frame.Size = UDim2.new(0, 160, 0, 130)
  10. frame.Position = UDim2.new(0.5, -80, 0.5, -65)
  11. frame.BackgroundColor3 = Color3.fromRGB(30, 30, 30)
  12. frame.BorderSizePixel = 0
  13. frame.Active, frame.Draggable = true, true
  14.  
  15. -- Stylish Label
  16. local label = Instance.new("TextLabel", frame)
  17. label.Size = UDim2.new(1, 0, 0, 25)
  18. label.Position = UDim2.new(0, 0, 1, -25)
  19. label.Text = "YT: SeanBlox"
  20. label.TextColor3 = Color3.fromRGB(0, 255, 255)
  21. label.Font = Enum.Font.GothamBlack
  22. label.TextSize = 16
  23. label.BackgroundTransparency = 1
  24.  
  25. local stroke = Instance.new("UIStroke", label)
  26. stroke.Color = Color3.new(1, 1, 1)
  27. stroke.Thickness = 1
  28. stroke.Transparency = 0.3
  29.  
  30. -- Buttons
  31. local function createBtn(text, posY)
  32. local btn = Instance.new("TextButton", frame)
  33. btn.Size = UDim2.new(1, -20, 0, 35)
  34. btn.Position = UDim2.new(0, 10, 0, posY)
  35. btn.Text = text
  36. btn.BackgroundColor3 = Color3.fromRGB(0, 170, 255)
  37. btn.TextColor3 = Color3.new(1,1,1)
  38. btn.Font = Enum.Font.SourceSansBold
  39. btn.TextSize = 18
  40. btn.BorderSizePixel = 0
  41. return btn
  42. end
  43.  
  44. local teleportBtn = createBtn("Collect Diamond", 10)
  45. local afkBtn = createBtn("Anti-AFK", 50)
  46.  
  47. -- Close Button
  48. local closeBtn = Instance.new("TextButton", frame)
  49. closeBtn.Size = UDim2.new(0, 25, 0, 25)
  50. closeBtn.Position = UDim2.new(1, -25, 0, 0)
  51. closeBtn.Text = "X"
  52. closeBtn.BackgroundColor3 = Color3.fromRGB(200, 50, 50)
  53. closeBtn.TextColor3 = Color3.new(1,1,1)
  54. closeBtn.Font = Enum.Font.SourceSansBold
  55. closeBtn.TextSize = 16
  56. closeBtn.BorderSizePixel = 0
  57. closeBtn.MouseButton1Click:Connect(function()
  58. gui:Destroy()
  59. end)
  60.  
  61. -- Teleport Function
  62. local function getChar() return player.Character or player.CharacterAdded:Wait() end
  63. local function teleportTo(part)
  64. local root = getChar():WaitForChild("HumanoidRootPart", 5)
  65. if root and part:IsA("BasePart") then
  66. root.CFrame = part.CFrame + Vector3.new(0, 5, 0)
  67. end
  68. end
  69.  
  70. teleportBtn.MouseButton1Click:Connect(function()
  71. for _, emerald in ipairs(workspace:WaitForChild("Secured"):WaitForChild("EmeraldPickups"):GetChildren()) do
  72. if emerald:IsA("BasePart") then
  73. teleportTo(emerald)
  74. task.wait(0.2)
  75. end
  76. end
  77. end)
  78.  
  79. -- Anti-AFK
  80. afkBtn.MouseButton1Click:Connect(function()
  81. player.Idled:Connect(function()
  82. local vu = game:GetService("VirtualUser")
  83. vu:Button2Down(Vector2.new(), workspace.CurrentCamera.CFrame)
  84. task.wait(1)
  85. vu:Button2Up(Vector2.new(), workspace.CurrentCamera.CFrame)
  86. end)
  87. afkBtn.Text = "Anti-AFK: ON"
  88. afkBtn.BackgroundColor3 = Color3.fromRGB(0, 200, 0)
  89. afkBtn.AutoButtonColor = false
  90. StarterGui:SetCore("SendNotification", {
  91. Title = "Anti-AFK Activated",
  92. Text = "You won't go idle anymore.",
  93. Duration = 3
  94. })
  95. end)
Advertisement
Add Comment
Please, Sign In to add comment