Advertisement
2AreYouMental110

world of stands (chests fixed)

Apr 8th, 2023 (edited)
1,406
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 8.73 KB | None | 0 0
  1. ------------SETTINGS------------------------------------
  2. local rainbow = true -- adds a cool rainbow effect to the gui
  3. local clicktpkeybind = Enum.KeyCode.LeftControl -- keybind to hold when you click tp
  4. local bgcolor = Color3.fromRGB(60,60,60) -- background color if rainbow is set to false
  5. local font = Enum.Font.Highway -- font for the text
  6. ------------SETTINGS------------------------------------
  7. local tween = game:GetService("TweenService")
  8. getgenv().autochest = false
  9. getgenv().clicktp = false
  10. local destroyed = false
  11. local localplr = game.Players.LocalPlayer
  12. local keybindon = false
  13. local nofallplatform = Instance.new("Part")
  14. nofallplatform.Transparency = 0.7
  15. nofallplatform.CanCollide = true
  16. nofallplatform.Anchored = true
  17. nofallplatform.Position = Vector3.new(0,0,0)
  18. nofallplatform.Size = Vector3.new(5,4,5)
  19. nofallplatform.Parent = workspace
  20. if getgenv().wosgui then
  21.     getgenv().wosgui:Destroy()
  22. end
  23.  
  24. function moveplr(part,pos)
  25.     local movetime = (part.Position - pos).magnitude/45
  26.     nofallplatform.Position = part.Position-Vector3.new(0,3,0)
  27.     local tweenanim = tween:Create(part,TweenInfo.new(movetime,Enum.EasingStyle.Linear,Enum.EasingDirection.Out,0,false,0),{CFrame = CFrame.new(pos)})
  28.     local tweenanim2 = tween:Create(nofallplatform,TweenInfo.new(movetime,Enum.EasingStyle.Linear,Enum.EasingDirection.Out,0,false,0),{CFrame = CFrame.new(pos-Vector3.new(0,5,0))})
  29.     tweenanim:Play()
  30.     tweenanim2:Play()
  31.     wait(movetime)
  32.     return
  33. end
  34.  
  35. getgenv().wosgui = Instance.new("ScreenGui")
  36. wosgui.Parent = game.CoreGui
  37. local mainframe = Instance.new("Frame")
  38. mainframe.Parent = wosgui
  39. mainframe.Size = UDim2.new(.3,0,.35,0)
  40. mainframe.Position = UDim2.new(.35,0,.3)
  41. mainframe.BackgroundColor3 = bgcolor
  42. mainframe.BorderColor3 = Color3.fromRGB(255,255,255)
  43. mainframe.Active = true
  44. mainframe.Draggable = true
  45. local title = Instance.new("TextLabel")
  46. title.Parent = mainframe
  47. title.Size = UDim2.new(1,0,.15,0)
  48. title.BackgroundTransparency = 0
  49. title.BackgroundColor3 = bgcolor
  50. title.BorderColor3 = Color3.fromRGB(255,255,255)
  51. title.TextScaled = true
  52. title.TextColor3 = Color3.fromRGB(255,255,255)
  53. title.Text = "World Of Stands"
  54. title.Font = font
  55. if not game.Workspace.ChestSpawns then
  56.     title.Text = "World Of Stands (Can't farm chests!)"
  57. end
  58. local credits = Instance.new("TextLabel")
  59. credits.Parent = mainframe
  60. credits.Size = UDim2.new(1,0,.075,0)
  61. credits.Position = UDim2.new(0,0,.15,0)
  62. credits.BackgroundTransparency = 0
  63. credits.BackgroundColor3 = bgcolor
  64. credits.BorderColor3 = Color3.fromRGB(255,255,255)
  65. credits.TextScaled = true
  66. credits.TextColor3 = Color3.fromRGB(255,255,255)
  67. credits.Text = "Made By 2AreYouMental110"
  68. credits.Font = font
  69. local autochestbutton = Instance.new("TextButton")
  70. autochestbutton.Parent = mainframe
  71. autochestbutton.Size = UDim2.new(.25,0,.25,0)
  72. autochestbutton.Position = UDim2.new(.05,0,.3,0)
  73. autochestbutton.BackgroundColor3 = bgcolor
  74. autochestbutton.BorderColor3 = Color3.fromRGB(255,255,255)
  75. autochestbutton.TextColor3 = Color3.fromRGB(255,255,255)
  76. autochestbutton.TextScaled = true
  77. autochestbutton.Text = "Autofarm Chest: OFF"
  78. autochestbutton.Font = font
  79. local a = autochestbutton.MouseButton1Click:Connect(function()
  80.     if getgenv().autochest == false then
  81.         getgenv().autochest = true
  82.         autochestbutton.Text = "Autofarm Chest: ON"
  83.         for i,child in pairs(game.Workspace:GetChildren()) do
  84.             if getgenv().autochest == true and tonumber(child.Name) and child:FindFirstChild("Inside") and not child:FindFirstChild("Animation") and localplr.Character ~= nil and localplr.Character:FindFirstChild("HumanoidRootPart") then
  85.                 moveplr(localplr.Character.HumanoidRootPart,child.Inside.Position)
  86.                 fireproximityprompt(child.Inside.ProximityPrompt)
  87.                 repeat wait(.1) until child.Parent == nil
  88.                 wait(.5)
  89.             end
  90.         end
  91.     elseif getgenv().autochest == true then
  92.         getgenv().autochest = false
  93.         autochestbutton.Text = "Autofarm Chest: OFF"
  94.     end
  95. end)
  96. local chestamttext = Instance.new("TextLabel")
  97. chestamttext.Parent = mainframe
  98. chestamttext.Size = UDim2.new(.25,0,.25,0)
  99. chestamttext.Position = UDim2.new(.375,0,.3,0)
  100. chestamttext.BackgroundColor3 = bgcolor
  101. chestamttext.BorderColor3 = Color3.fromRGB(255,255,255)
  102. chestamttext.TextColor3 = Color3.fromRGB(255,255,255)
  103. chestamttext.TextScaled = true
  104. chestamttext.Text = "Chests: 0"
  105. chestamttext.Font = font
  106. local clicktpbutton = Instance.new("TextButton")
  107. clicktpbutton.Parent = mainframe
  108. clicktpbutton.Size = UDim2.new(.25,0,.25,0)
  109. clicktpbutton.Position = UDim2.new(.7,0,.3,0)
  110. clicktpbutton.BackgroundColor3 = bgcolor
  111. clicktpbutton.BorderColor3 = Color3.fromRGB(255,255,255)
  112. clicktpbutton.TextColor3 = Color3.fromRGB(255,255,255)
  113. clicktpbutton.TextScaled = true
  114. clicktpbutton.Text = "Click TP: OFF"
  115. clicktpbutton.Font = font
  116. local b = clicktpbutton.MouseButton1Click:Connect(function()
  117.     if getgenv().clicktp == false then
  118.         getgenv().clicktp = true
  119.         clicktpbutton.Text = "Click TP: ON"
  120.     elseif getgenv().clicktp == true then
  121.         getgenv().clicktp = false
  122.         clicktpbutton.Text = "Click TP: OFF"
  123.     end
  124. end)
  125. local deathspotbutton = Instance.new("TextButton")
  126. deathspotbutton.Parent = mainframe
  127. deathspotbutton.Size = UDim2.new(.25,0,.25,0)
  128. deathspotbutton.Position = UDim2.new(.05,0,.675,0)
  129. deathspotbutton.BackgroundColor3 = bgcolor
  130. deathspotbutton.BorderColor3 = Color3.fromRGB(255,255,255)
  131. deathspotbutton.TextColor3 = Color3.fromRGB(255,255,255)
  132. deathspotbutton.TextScaled = true
  133. deathspotbutton.Text = "Go to death spot"
  134. deathspotbutton.Font = font
  135. local c = deathspotbutton.MouseButton1Click:Connect(function()
  136.     if typeof(getgenv().deathspot) == "Vector3" and localplr.Character ~= nil and localplr.Character:FindFirstChild("HumanoidRootPart") then
  137.         moveplr(localplr.Character.HumanoidRootPart,getgenv().deathspot)
  138.     end
  139. end)
  140. local chestamt = 0
  141. if game.Workspace:FindFirstChild("ChestSpawns") then
  142.     for i,child in pairs(game.Workspace:GetChildren()) do
  143.         if tonumber(child.Name) and child:FindFirstChild("Inside") then
  144.             chestamt += 1
  145.             chestamttext.Text = "Chests: "..tostring(chestamt)
  146.         end
  147.     end
  148. end
  149. local d = game.Workspace.ChildAdded:Connect(function(child)
  150.     if tonumber(child.Name) and child:FindFirstChild("Inside") then
  151.         chestamt += 1
  152.         chestamttext.Text = "Chests: "..tostring(chestamt)
  153.     end
  154.     if getgenv().autochest == true and tonumber(child.Name) and child:FindFirstChild("Inside") and not child:FindFirstChild("Animation") and localplr.Character ~= nil and localplr.Character:FindFirstChild("HumanoidRootPart") then
  155.         moveplr(localplr.Character.HumanoidRootPart,child.Inside.Position)
  156.         fireproximityprompt(child.Inside.ProximityPrompt)
  157.         repeat wait(.1) until child.Parent == nil
  158.     end
  159. end)
  160. local e = game.Workspace.ChildRemoved:Connect(function(child)
  161.     if tonumber(child.Name) and child:FindFirstChild("Inside") then
  162.         chestamt -= 1
  163.         chestamttext.Text = "Chests: "..tostring(chestamt)
  164.     end
  165. end)
  166. local f = game:GetService("UserInputService").InputBegan:Connect(function(input)
  167.     if getgenv().clicktp == true and input.KeyCode == clicktpkeybind then
  168.         keybindon = true
  169.     elseif getgenv().clicktp == true and keybindon == true and input.UserInputType == Enum.UserInputType.MouseButton1 and localplr.Character ~= nil and localplr.Character:FindFirstChild("HumanoidRootPart") then
  170.         moveplr(localplr.Character.HumanoidRootPart,localplr:GetMouse().Hit.Position+Vector3.new(0,3,0))
  171.     end
  172. end)
  173. local g = game:GetService("UserInputService").InputEnded:Connect(function(input)
  174.     if getgenv().clicktp == true and input.KeyCode == clicktpkeybind then
  175.         keybindon = false
  176.     end
  177. end)
  178. local h = localplr.CharacterRemoving:Connect(function(char)
  179.     if char:FindFirstChild("HumanoidRootPart") then
  180.         getgenv().deathspot = char.HumanoidRootPart.Position+Vector3.new(0,3,0)
  181.     end
  182. end)
  183. local i = wosgui.Destroying:Connect(function()
  184.     destroyed = true
  185. end)
  186. local color
  187. local t = 30
  188. repeat
  189.     wait()
  190.     if rainbow == true then
  191.         color = Color3.fromHSV(tick() % t/t,1,1)
  192.         mainframe.BackgroundColor3 = color
  193.         title.BackgroundColor3 = color
  194.         credits.BackgroundColor3 = color
  195.         autochestbutton.BackgroundColor3 = color
  196.         chestamttext.BackgroundColor3 = color
  197.         clicktpbutton.BackgroundColor3 = color
  198.         deathspotbutton.BackgroundColor3 = color
  199.     end
  200. until destroyed == true
  201. getgenv().autochest = false
  202. getgenv().clicktp = false
  203. a:Disconnect()
  204. b:Disconnect()
  205. c:Disconnect()
  206. d:Disconnect()
  207. e:Disconnect()
  208. f:Disconnect()
  209. g:Disconnect()
  210. h:Disconnect()
  211. i:Disconnect()
  212. nofallplatform:Destroy()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement