Butter Hub - Pastebin.com (2024)

  1. --Butter Dev source code

  2. --leaked by Kissbox/Applebox

  3. --#region UI CODE

  4. --#region gay

  5. getgenv().gay = false

  6. if game.Players.localPlayer:IsInGroup(7671821) then

  7. getgenv().gay = true

  8. else

  9. getgenv().gay = false

  10. end

  11. --[[local allowedUserIds = {

  12. "4175482139", -- Kissbox

  13. "264766302", -- Gamer

  14. "440361410", -- Smazt

  15. "424570617", -- RNG

  16. "303108222", -- vxlkjezlxv

  17. "4021049647",-- Crystalized

  18. "140020390", -- Tip

  19. "1720942089", -- Zxl

  20. "3000978576", -- Pluto

  21. "127972668", -- Wicked

  22. "318945749", -- Nearepick

  23. "1253471690", -- Nearepick alt

  24. "3198289631" -- Lui100

  25. }

  26. if table.find(allowedUserIds, tostring(game.Players.LocalPlayer.UserId)) then

  27. getgenv().gay = true

  28. end--]]

  29. --#endregion

  30. --#region library

  31. local library = {}

  32. local ToggleUI = false

  33. library.currentTab = nil

  34. library.flags = {}

  35. local services = setmetatable({}, {

  36. __index = function(t, k)

  37. return game.GetService(game, k)

  38. end

  39. })

  40. local mouse = services.Players.LocalPlayer:GetMouse()

  41. function Tween(obj, t, data)

  42. services.TweenService:Create(obj, TweenInfo.new(t[1], Enum.EasingStyle[t[2]], Enum.EasingDirection[t[3]]), data):Play()

  43. return true

  44. end

  45. local toggled = false

  46. -- # Switch Tabs # --

  47. local switchingTabs = false

  48. function switchTab(new)

  49. if switchingTabs then return end

  50. local old = library.currentTab

  51. if old == nil then

  52. new[2].Visible = true

  53. library.currentTab = new

  54. services.TweenService:Create(new[1], TweenInfo.new(0.1), {ImageTransparency = 0}):Play()

  55. services.TweenService:Create(new[1].TabText, TweenInfo.new(0.1), {TextTransparency = 0}):Play()

  56. return

  57. end

  58. if old[1] == new[1] then return end

  59. switchingTabs = true

  60. library.currentTab = new

  61. services.TweenService:Create(old[1], TweenInfo.new(0.1), {ImageTransparency = 0.2}):Play()

  62. services.TweenService:Create(new[1], TweenInfo.new(0.1), {ImageTransparency = 0}):Play()

  63. services.TweenService:Create(old[1].TabText, TweenInfo.new(0.1), {TextTransparency = 0.2}):Play()

  64. services.TweenService:Create(new[1].TabText, TweenInfo.new(0.1), {TextTransparency = 0}):Play()

  65. old[2].Visible = false

  66. new[2].Visible = true

  67. task.wait(0.1)

  68. switchingTabs = false

  69. end

  70. -- # Drag, Stolen from Kiriot or Wally # --

  71. function drag(frame, hold)

  72. if not hold then

  73. hold = frame

  74. end

  75. local dragging

  76. local dragInput

  77. local dragStart

  78. local startPos

  79. function Ripple(obj)

  80. spawn(function()

  81. if obj.ClipsDescendants ~= true then

  82. obj.ClipsDescendants = true

  83. end

  84. local Ripple = Instance.new("ImageLabel")

  85. Ripple.Name = "Ripple"

  86. Ripple.Parent = obj

  87. Ripple.BackgroundColor3 = Color3.fromRGB(255, 255, 255)

  88. Ripple.BackgroundTransparency = 1.000

  89. Ripple.ZIndex = 8

  90. Ripple.Image = "rbxassetid://2708891598"

  91. Ripple.ImageTransparency = 0.800

  92. Ripple.ScaleType = Enum.ScaleType.Fit

  93. Ripple.ImageColor3 = Color3.fromRGB(255, 255, 255)

  94. Ripple.Position = UDim2.new((mouse.X - Ripple.AbsolutePosition.X) / obj.AbsoluteSize.X, 0, (mouse.Y - Ripple.AbsolutePosition.Y) / obj.AbsoluteSize.Y, 0)

  95. Tween(Ripple, {.3, 'Linear', 'InOut'}, {Position = UDim2.new(-5.5, 0, -5.5, 0), Size = UDim2.new(12, 0, 12, 0)})

  96. wait(0.15)

  97. Tween(Ripple, {.3, 'Linear', 'InOut'}, {ImageTransparency = 1})

  98. wait(.3)

  99. Ripple:Destroy()

  100. end)

  101. end

  102. local function update(input)

  103. local delta = input.Position - dragStart

  104. frame.Position = UDim2.new(startPos.X.Scale, startPos.X.Offset + delta.X, startPos.Y.Scale, startPos.Y.Offset + delta.Y)

  105. end

  106. hold.InputBegan:Connect(function(input)

  107. if input.UserInputType == Enum.UserInputType.MouseButton1 then

  108. dragging = true

  109. dragStart = input.Position

  110. startPos = frame.Position

  111. input.Changed:Connect(function()

  112. if input.UserInputState == Enum.UserInputState.End then

  113. dragging = false

  114. end

  115. end)

  116. end

  117. end)

  118. frame.InputChanged:Connect(function(input)

  119. if input.UserInputType == Enum.UserInputType.MouseMovement then

  120. dragInput = input

  121. end

  122. end)

  123. services.UserInputService.InputChanged:Connect(function(input)

  124. if input == dragInput and dragging then

  125. update(input)

  126. end

  127. end)

  128. end

  129. function library.new(library, name)

  130. for _, v in next, services.CoreGui:GetChildren() do

  131. if v.Name == "frosty is cute" then

  132. v:Destroy()

  133. end

  134. end

  135. local dogent = Instance.new("ScreenGui")

  136. local Main = Instance.new("Frame")

  137. local TabMain = Instance.new("Frame")

  138. local MainC = Instance.new("UICorner")

  139. local SB = Instance.new("Frame")

  140. local SBC = Instance.new("UICorner")

  141. local Side = Instance.new("Frame")

  142. local SideG = Instance.new("UIGradient")

  143. local TabBtns = Instance.new("ScrollingFrame")

  144. local TabBtnsL = Instance.new("UIListLayout")

  145. local ScriptTitle = Instance.new("TextLabel")

  146. local SBG = Instance.new("UIGradient")

  147. if syn and syn.protect_gui then syn.protect_gui(dogent) end

  148. dogent.Name = "frosty is cute"

  149. dogent.Parent = services.CoreGui

  150. function UiDestroy()

  151. dogent:Destroy()

  152. end

  153. function ToggleUILib()

  154. if not ToggleUI then

  155. dogent.Enabled = false

  156. ToggleUI = true

  157. else

  158. ToggleUI = false

  159. dogent.Enabled = true

  160. end

  161. end

  162. Main.Name = "Main"

  163. Main.Parent = dogent

  164. Main.AnchorPoint = Vector2.new(0.5, 0.5)

  165. Main.BackgroundColor3 = Color3.fromRGB(25, 25, 25)

  166. Main.BorderColor3 = Color3.fromRGB(25, 25, 25)

  167. Main.Position = UDim2.new(0.5, 0, 0.5, 0)

  168. Main.Size = UDim2.new(0, 572, 0, 353)

  169. drag(Main)

  170. function toggleui()

  171. toggled = not toggled

  172. spawn(function()

  173. if toggled then wait(0.3) end

  174. end)

  175. Tween(Main, {0.3, 'Sine', 'InOut'}, {

  176. Size = UDim2.new(0, 609, 0, (toggled and 505 or 0))

  177. })

  178. end

  179. TabMain.Name = "TabMain"

  180. TabMain.Parent = Main

  181. TabMain.BackgroundColor3 = Color3.fromRGB(255, 255, 255)

  182. TabMain.BackgroundTransparency = 1.000

  183. TabMain.Position = UDim2.new(0.217000037, 0, 0, 3)

  184. TabMain.Size = UDim2.new(0, 448, 0, 346)

  185. MainC.CornerRadius = UDim.new(0, 6)

  186. MainC.Name = "MainC"

  187. MainC.Parent = Main

  188. SB.Name = "SB"

  189. SB.Parent = Main

  190. SB.BackgroundColor3 = Color3.fromRGB(255, 255, 255)

  191. SB.BorderColor3 = Color3.fromRGB(25, 25, 25)

  192. SB.Size = UDim2.new(0, 8, 0, 353)

  193. SBC.CornerRadius = UDim.new(0, 6)

  194. SBC.Name = "SBC"

  195. SBC.Parent = SB

  196. Side.Name = "Side"

  197. Side.Parent = SB

  198. Side.BackgroundColor3 = Color3.fromRGB(255, 255, 255)

  199. Side.BorderColor3 = Color3.fromRGB(25, 25, 25)

  200. Side.BorderSizePixel = 0

  201. Side.ClipsDescendants = true

  202. Side.Position = UDim2.new(1, 0, 0, 0)

  203. Side.Size = UDim2.new(0, 110, 0, 353)

  204. SideG.Color = ColorSequence.new{ColorSequenceKeypoint.new(0.00, Color3.fromRGB(30, 30, 30)), ColorSequenceKeypoint.new(1.00, Color3.fromRGB(30, 30, 30))}

  205. SideG.Rotation = 90

  206. SideG.Name = "SideG"

  207. SideG.Parent = Side

  208. TabBtns.Name = "TabBtns"

  209. TabBtns.Parent = Side

  210. TabBtns.Active = true

  211. TabBtns.BackgroundColor3 = Color3.fromRGB(255, 255, 255)

  212. TabBtns.BackgroundTransparency = 1.000

  213. TabBtns.BorderSizePixel = 0

  214. TabBtns.Position = UDim2.new(0, 0, 0.0973535776, 0)

  215. TabBtns.Size = UDim2.new(0, 110, 0, 318)

  216. TabBtns.CanvasSize = UDim2.new(0, 0, 1, 0)

  217. TabBtns.ScrollBarThickness = 0

  218. TabBtnsL.Name = "TabBtnsL"

  219. TabBtnsL.Parent = TabBtns

  220. TabBtnsL.SortOrder = Enum.SortOrder.LayoutOrder

  221. TabBtnsL.Padding = UDim.new(0, 12)

  222. pcall(function()

  223. function zigzag(X) return math.acos(math.cos(X*math.pi))/math.pi end

  224. local RGBcounter = 0

  225. if getgenv().gay == true then

  226. task.spawn(function()

  227. while wait(0.1) do

  228. RGBcounter = RGBcounter + 0.01

  229. end

  230. end)

  231. end

  232. ScriptTitle.Name = "ScriptTitle"

  233. ScriptTitle.Parent = Side

  234. ScriptTitle.BackgroundColor3 = Color3.fromRGB(25, 25, 25)

  235. ScriptTitle.BackgroundTransparency = 1.000

  236. ScriptTitle.Position = UDim2.new(0, 0, 0.00953488424, 0)

  237. ScriptTitle.Size = UDim2.new(0, 102, 0, 20)

  238. ScriptTitle.Font = Enum.Font.GothamSemibold

  239. ScriptTitle.Text = name

  240. if getgenv().gay == true then

  241. task.spawn(function()

  242. while wait(0.1) do

  243. ScriptTitle.TextColor3 = Color3.fromHSV(zigzag(RGBcounter),1,1)

  244. end

  245. end)

  246. else

  247. ScriptTitle.TextColor3 = Color3.fromRGB(255, 255, 255)

  248. end

  249. end)

  250. ScriptTitle.TextSize = 14.000

  251. ScriptTitle.TextXAlignment = Enum.TextXAlignment.Left

  252. SBG.Color = ColorSequence.new{ColorSequenceKeypoint.new(0.00, Color3.fromRGB(30, 30, 30)), ColorSequenceKeypoint.new(1.00, Color3.fromRGB(30, 30, 30))}

  253. SBG.Rotation = 90

  254. SBG.Name = "SBG"

  255. SBG.Parent = SB

  256. TabBtnsL:GetPropertyChangedSignal("AbsoluteContentSize"):Connect(function()

  257. TabBtns.CanvasSize = UDim2.new(0, 0, 0, TabBtnsL.AbsoluteContentSize.Y + 18)

  258. end)

  259. local window = {}

  260. function window.Tab(window, name, icon)

  261. local Tab = Instance.new("ScrollingFrame")

  262. local TabIco = Instance.new("ImageLabel")

  263. local TabText = Instance.new("TextLabel")

  264. local TabBtn = Instance.new("TextButton")

  265. local TabL = Instance.new("UIListLayout")

  266. Tab.Name = "Tab"

  267. Tab.Parent = TabMain

  268. Tab.Active = true

  269. Tab.BackgroundColor3 = Color3.fromRGB(25, 25, 25)

  270. Tab.BackgroundTransparency = 1.000

  271. Tab.Size = UDim2.new(1, 0, 1, 0)

  272. Tab.ScrollBarThickness = 2

  273. Tab.Visible = false

  274. TabIco.Name = "TabIco"

  275. TabIco.Parent = TabBtns

  276. TabIco.BackgroundTransparency = 1.000

  277. TabIco.BorderSizePixel = 0

  278. TabIco.Size = UDim2.new(0, 24, 0, 24)

  279. TabIco.Image = ("rbxassetid://%s"):format((icon or 4370341699))

  280. TabIco.ImageTransparency = 0.2

  281. TabText.Name = "TabText"

  282. TabText.Parent = TabIco

  283. TabText.BackgroundColor3 = Color3.fromRGB(255, 255, 255)

  284. TabText.BackgroundTransparency = 1.000

  285. TabText.Position = UDim2.new(1.41666663, 0, 0, 0)

  286. TabText.Size = UDim2.new(0, 76, 0, 24)

  287. TabText.Font = Enum.Font.GothamSemibold

  288. TabText.Text = name

  289. TabText.TextColor3 = Color3.fromRGB(255, 255, 255)

  290. TabText.TextSize = 14.000

  291. TabText.TextXAlignment = Enum.TextXAlignment.Left

  292. TabText.TextTransparency = 0.2

  293. TabBtn.Name = "TabBtn"

  294. TabBtn.Parent = TabIco

  295. TabBtn.BackgroundColor3 = Color3.fromRGB(255, 255, 255)

  296. TabBtn.BackgroundTransparency = 1.000

  297. TabBtn.BorderSizePixel = 0

  298. TabBtn.Size = UDim2.new(0, 110, 0, 24)

  299. TabBtn.AutoButtonColor = false

  300. TabBtn.Font = Enum.Font.SourceSans

  301. TabBtn.Text = ""

  302. TabBtn.TextColor3 = Color3.fromRGB(0, 0, 0)

  303. TabBtn.TextSize = 14.000

  304. TabL.Name = "TabL"

  305. TabL.Parent = Tab

  306. TabL.SortOrder = Enum.SortOrder.LayoutOrder

  307. TabL.Padding = UDim.new(0, 4)

  308. TabBtn.MouseButton1Click:Connect(function()

  309. spawn(function()

  310. Ripple(TabBtn)

  311. end)

  312. switchTab({TabIco, Tab})

  313. end)

  314. if library.currentTab == nil then switchTab({TabIco, Tab}) end

  315. TabL:GetPropertyChangedSignal("AbsoluteContentSize"):Connect(function()

  316. Tab.CanvasSize = UDim2.new(0, 0, 0, TabL.AbsoluteContentSize.Y + 8)

  317. end)

  318. local tab = {}

  319. function tab.section(tab, name, TabVal)

  320. local Section = Instance.new("Frame")

  321. local SectionC = Instance.new("UICorner")

  322. local SectionText = Instance.new("TextLabel")

  323. local SectionOpen = Instance.new("ImageLabel")

  324. local SectionOpened = Instance.new("ImageLabel")

  325. local SectionToggle = Instance.new("ImageButton")

  326. local Objs = Instance.new("Frame")

  327. local ObjsL = Instance.new("UIListLayout")

  328. Section.Name = "Section"

  329. Section.Parent = Tab

  330. Section.BackgroundColor3 = Color3.fromRGB(25, 25, 25)

  331. Section.BackgroundTransparency = 1.000

  332. Section.BorderSizePixel = 0

  333. Section.ClipsDescendants = true

  334. Section.Size = UDim2.new(0.981000006, 0, 0, 36)

  335. SectionC.CornerRadius = UDim.new(0, 6)

  336. SectionC.Name = "SectionC"

  337. SectionC.Parent = Section

  338. SectionText.Name = "SectionText"

  339. SectionText.Parent = Section

  340. SectionText.BackgroundColor3 = Color3.fromRGB(255, 255, 255)

  341. SectionText.BackgroundTransparency = 1.000

  342. SectionText.Position = UDim2.new(0.0887396261, 0, 0, 0)

  343. SectionText.Size = UDim2.new(0, 401, 0, 36)

  344. SectionText.Font = Enum.Font.GothamSemibold

  345. SectionText.Text = name

  346. SectionText.TextColor3 = Color3.fromRGB(255, 255, 255)

  347. SectionText.TextSize = 16.000

  348. SectionText.TextXAlignment = Enum.TextXAlignment.Left

  349. SectionOpen.Name = "SectionOpen"

  350. SectionOpen.Parent = SectionText

  351. SectionOpen.BackgroundTransparency = 1

  352. SectionOpen.BorderSizePixel = 0

  353. SectionOpen.Position = UDim2.new(0, -33, 0, 5)

  354. SectionOpen.Size = UDim2.new(0, 26, 0, 26)

  355. SectionOpen.Image = "http://www.roblox.com/asset/?id=6031302934"

  356. SectionOpened.Name = "SectionOpened"

  357. SectionOpened.Parent = SectionOpen

  358. SectionOpened.BackgroundTransparency = 1.000

  359. SectionOpened.BorderSizePixel = 0

  360. SectionOpened.Size = UDim2.new(0, 26, 0, 26)

  361. SectionOpened.Image = "http://www.roblox.com/asset/?id=6031302932"

  362. SectionOpened.ImageTransparency = 1.000

  363. SectionToggle.Name = "SectionToggle"

  364. SectionToggle.Parent = SectionOpen

  365. SectionToggle.BackgroundTransparency = 1

  366. SectionToggle.BorderSizePixel = 0

  367. SectionToggle.Size = UDim2.new(0, 26, 0, 26)

  368. Objs.Name = "Objs"

  369. Objs.Parent = Section

  370. Objs.BackgroundColor3 = Color3.fromRGB(255, 255, 255)

  371. Objs.BackgroundTransparency = 1

  372. Objs.BorderSizePixel = 0

  373. Objs.Position = UDim2.new(0, 6, 0, 36)

  374. Objs.Size = UDim2.new(0.986347735, 0, 0, 0)

  375. ObjsL.Name = "ObjsL"

  376. ObjsL.Parent = Objs

  377. ObjsL.SortOrder = Enum.SortOrder.LayoutOrder

  378. ObjsL.Padding = UDim.new(0, 8)

  379. local open = TabVal

  380. if TabVal ~= false then

  381. Section.Size = UDim2.new(0.981000006, 0, 0, open and 36 + ObjsL.AbsoluteContentSize.Y + 8 or 36)

  382. SectionOpened.ImageTransparency = (open and 0 or 1)

  383. SectionOpen.ImageTransparency = (open and 1 or 0)

  384. end

  385. SectionToggle.MouseButton1Click:Connect(function()

  386. open = not open

  387. Section.Size = UDim2.new(0.981000006, 0, 0, open and 36 + ObjsL.AbsoluteContentSize.Y + 8 or 36)

  388. SectionOpened.ImageTransparency = (open and 0 or 1)

  389. SectionOpen.ImageTransparency = (open and 1 or 0)

  390. end)

  391. ObjsL:GetPropertyChangedSignal("AbsoluteContentSize"):Connect(function()

  392. if not open then return end

  393. Section.Size = UDim2.new(0.981000006, 0, 0, 36 + ObjsL.AbsoluteContentSize.Y + 8)

  394. end)

  395. local section = {}

  396. function section.Button(section, text, callback)

  397. local callback = callback or function() end

  398. local BtnModule = Instance.new("Frame")

  399. local Btn = Instance.new("TextButton")

  400. local BtnC = Instance.new("UICorner")

  401. BtnModule.Name = "BtnModule"

  402. BtnModule.Parent = Objs

  403. BtnModule.BackgroundColor3 = Color3.fromRGB(255, 255, 255)

  404. BtnModule.BackgroundTransparency = 1.000

  405. BtnModule.BorderSizePixel = 0

  406. BtnModule.Position = UDim2.new(0, 0, 0, 0)

  407. BtnModule.Size = UDim2.new(0, 428, 0, 38)

  408. Btn.Name = "Btn"

  409. Btn.Parent = BtnModule

  410. Btn.BackgroundColor3 = Color3.fromRGB(30, 30, 30)

  411. Btn.BorderSizePixel = 0

  412. Btn.Size = UDim2.new(0, 428, 0, 38)

  413. Btn.AutoButtonColor = false

  414. Btn.Font = Enum.Font.GothamSemibold

  415. Btn.Text = " " .. text

  416. Btn.TextColor3 = Color3.fromRGB(255, 255, 255)

  417. Btn.TextSize = 16.000

  418. Btn.TextXAlignment = Enum.TextXAlignment.Left

  419. BtnC.CornerRadius = UDim.new(0, 6)

  420. BtnC.Name = "BtnC"

  421. BtnC.Parent = Btn

  422. Btn.MouseButton1Click:Connect(function()

  423. spawn(function()

  424. Ripple(Btn)

  425. end)

  426. spawn(callback)

  427. end)

  428. end

  429. function section:Label(text)

  430. local LabelModule = Instance.new("Frame")

  431. local TextLabel = Instance.new("TextLabel")

  432. local LabelC = Instance.new("UICorner")

  433. LabelModule.Name = "LabelModule"

  434. LabelModule.Parent = Objs

  435. LabelModule.BackgroundColor3 = Color3.fromRGB(255, 255, 255)

  436. LabelModule.BackgroundTransparency = 1.000

  437. LabelModule.BorderSizePixel = 0

  438. LabelModule.Position = UDim2.new(0, 0, NAN, 0)

  439. LabelModule.Size = UDim2.new(0, 428, 0, 19)

  440. TextLabel.Parent = LabelModule

  441. TextLabel.BackgroundColor3 = Color3.fromRGB(30, 30, 30)

  442. TextLabel.Size = UDim2.new(0, 428, 0, 22)

  443. TextLabel.Font = Enum.Font.GothamSemibold

  444. TextLabel.Text = text

  445. TextLabel.TextColor3 = Color3.fromRGB(255, 255, 255)

  446. TextLabel.TextSize = 14.000

  447. LabelC.CornerRadius = UDim.new(0, 6)

  448. LabelC.Name = "LabelC"

  449. LabelC.Parent = TextLabel

  450. return TextLabel

  451. end

  452. function section.Toggle(section, text, flag, enabled, callback)

  453. local callback = callback or function() end

  454. local enabled = enabled or false

  455. assert(text, "No text provided")

  456. assert(flag, "No flag provided")

  457. library.flags[flag] = enabled

  458. local ToggleModule = Instance.new("Frame")

  459. local ToggleBtn = Instance.new("TextButton")

  460. local ToggleBtnC = Instance.new("UICorner")

  461. local ToggleDisable = Instance.new("Frame")

  462. local ToggleSwitch = Instance.new("Frame")

  463. local ToggleSwitchC = Instance.new("UICorner")

  464. local ToggleDisableC = Instance.new("UICorner")

  465. ToggleModule.Name = "ToggleModule"

  466. ToggleModule.Parent = Objs

  467. ToggleModule.BackgroundColor3 = Color3.fromRGB(255, 255, 255)

  468. ToggleModule.BackgroundTransparency = 1.000

  469. ToggleModule.BorderSizePixel = 0

  470. ToggleModule.Position = UDim2.new(0, 0, 0, 0)

  471. ToggleModule.Size = UDim2.new(0, 428, 0, 38)

  472. ToggleBtn.Name = "ToggleBtn"

  473. ToggleBtn.Parent = ToggleModule

  474. ToggleBtn.BackgroundColor3 = Color3.fromRGB(30, 30, 30)

  475. ToggleBtn.BorderSizePixel = 0

  476. ToggleBtn.Size = UDim2.new(0, 428, 0, 38)

  477. ToggleBtn.AutoButtonColor = false

  478. ToggleBtn.Font = Enum.Font.GothamSemibold

  479. ToggleBtn.Text = " " .. text

  480. ToggleBtn.TextColor3 = Color3.fromRGB(255, 255, 255)

  481. ToggleBtn.TextSize = 16.000

  482. ToggleBtn.TextXAlignment = Enum.TextXAlignment.Left

  483. ToggleBtnC.CornerRadius = UDim.new(0, 6)

  484. ToggleBtnC.Name = "ToggleBtnC"

  485. ToggleBtnC.Parent = ToggleBtn

  486. ToggleDisable.Name = "ToggleDisable"

  487. ToggleDisable.Parent = ToggleBtn

  488. ToggleDisable.BackgroundColor3 = Color3.fromRGB(25, 25, 25)

  489. ToggleDisable.BorderSizePixel = 0

  490. ToggleDisable.Position = UDim2.new(0.901869178, 0, 0.208881587, 0)

  491. ToggleDisable.Size = UDim2.new(0, 36, 0, 22)

  492. ToggleSwitch.Name = "ToggleSwitch"

  493. ToggleSwitch.Parent = ToggleDisable

  494. ToggleSwitch.BackgroundColor3 = Color3.fromRGB(25, 25, 25)

  495. ToggleSwitch.Size = UDim2.new(0, 24, 0, 22)

  496. ToggleSwitchC.CornerRadius = UDim.new(0, 6)

  497. ToggleSwitchC.Name = "ToggleSwitchC"

  498. ToggleSwitchC.Parent = ToggleSwitch

  499. ToggleDisableC.CornerRadius = UDim.new(0, 6)

  500. ToggleDisableC.Name = "ToggleDisableC"

  501. ToggleDisableC.Parent = ToggleDisable

  502. local funcs = {

  503. SetState = function(self, state)

  504. if state == nil then state = not library.flags[flag] end

  505. if library.flags[flag] == state then return end

  506. services.TweenService:Create(ToggleSwitch, TweenInfo.new(0.2), {Position = UDim2.new(0, (state and ToggleSwitch.Size.X.Offset / 2 or 0), 0, 0), BackgroundColor3 = (state and Color3.fromRGB(255, 255, 255) or Color3.fromRGB(25, 25, 25))}):Play()

  507. library.flags[flag] = state

  508. callback(state)

  509. end,

  510. Module = ToggleModule

  511. }

  512. if enabled ~= false then

  513. funcs:SetState(flag,true)

  514. end

  515. ToggleBtn.MouseButton1Click:Connect(function()

  516. funcs:SetState()

  517. end)

  518. return funcs

  519. end

  520. function section.Keybind(section, text, default, callback)

  521. local callback = callback or function() end

  522. assert(text, "No text provided")

  523. assert(default, "No default key provided")

  524. local default = (typeof(default) == "string" and Enum.KeyCode[default] or default)

  525. local banned = {

  526. Return = true;

  527. Space = true;

  528. Tab = true;

  529. Backquote = true;

  530. CapsLock = true;

  531. Escape = true;

  532. Unknown = true;

  533. }

  534. local shortNames = {

  535. RightControl = 'Right Ctrl',

  536. LeftControl = 'Left Ctrl',

  537. LeftShift = 'Left Shift',

  538. RightShift = 'Right Shift',

  539. Semicolon = ";",

  540. Quote = '"',

  541. LeftBracket = '[',

  542. RightBracket = ']',

  543. Equals = '=',

  544. Minus = '-',

  545. RightAlt = 'Right Alt',

  546. LeftAlt = 'Left Alt'

  547. }

  548. local bindKey = default

  549. local keyTxt = (default and (shortNames[default.Name] or default.Name) or "None")

  550. local KeybindModule = Instance.new("Frame")

  551. local KeybindBtn = Instance.new("TextButton")

  552. local KeybindBtnC = Instance.new("UICorner")

  553. local KeybindValue = Instance.new("TextButton")

  554. local KeybindValueC = Instance.new("UICorner")

  555. local KeybindL = Instance.new("UIListLayout")

  556. local UIPadding = Instance.new("UIPadding")

  557. KeybindModule.Name = "KeybindModule"

  558. KeybindModule.Parent = Objs

  559. KeybindModule.BackgroundColor3 = Color3.fromRGB(255, 255, 255)

  560. KeybindModule.BackgroundTransparency = 1.000

  561. KeybindModule.BorderSizePixel = 0

  562. KeybindModule.Position = UDim2.new(0, 0, 0, 0)

  563. KeybindModule.Size = UDim2.new(0, 428, 0, 38)

  564. KeybindBtn.Name = "KeybindBtn"

  565. KeybindBtn.Parent = KeybindModule

  566. KeybindBtn.BackgroundColor3 = Color3.fromRGB(30, 30, 30)

  567. KeybindBtn.BorderSizePixel = 0

  568. KeybindBtn.Size = UDim2.new(0, 428, 0, 38)

  569. KeybindBtn.AutoButtonColor = false

  570. KeybindBtn.Font = Enum.Font.GothamSemibold

  571. KeybindBtn.Text = " " .. text

  572. KeybindBtn.TextColor3 = Color3.fromRGB(255, 255, 255)

  573. KeybindBtn.TextSize = 16.000

  574. KeybindBtn.TextXAlignment = Enum.TextXAlignment.Left

  575. KeybindBtnC.CornerRadius = UDim.new(0, 6)

  576. KeybindBtnC.Name = "KeybindBtnC"

  577. KeybindBtnC.Parent = KeybindBtn

  578. KeybindValue.Name = "KeybindValue"

  579. KeybindValue.Parent = KeybindBtn

  580. KeybindValue.BackgroundColor3 = Color3.fromRGB(25, 25, 25)

  581. KeybindValue.BorderSizePixel = 0

  582. KeybindValue.Position = UDim2.new(0.763033211, 0, 0.289473683, 0)

  583. KeybindValue.Size = UDim2.new(0, 100, 0, 28)

  584. KeybindValue.AutoButtonColor = false

  585. KeybindValue.Font = Enum.Font.Gotham

  586. KeybindValue.Text = keyTxt

  587. KeybindValue.TextColor3 = Color3.fromRGB(255, 255, 255)

  588. KeybindValue.TextSize = 14.000

  589. KeybindValueC.CornerRadius = UDim.new(0, 6)

  590. KeybindValueC.Name = "KeybindValueC"

  591. KeybindValueC.Parent = KeybindValue

  592. KeybindL.Name = "KeybindL"

  593. KeybindL.Parent = KeybindBtn

  594. KeybindL.HorizontalAlignment = Enum.HorizontalAlignment.Right

  595. KeybindL.SortOrder = Enum.SortOrder.LayoutOrder

  596. KeybindL.VerticalAlignment = Enum.VerticalAlignment.Center

  597. UIPadding.Parent = KeybindBtn

  598. UIPadding.PaddingRight = UDim.new(0, 6)

  599. services.UserInputService.InputBegan:Connect(function(inp, gpe)

  600. if gpe then return end

  601. if inp.UserInputType ~= Enum.UserInputType.Keyboard then return end

  602. if inp.KeyCode ~= bindKey then return end

  603. callback(bindKey.Name)

  604. end)

  605. KeybindValue.MouseButton1Click:Connect(function()

  606. KeybindValue.Text = "..."

  607. wait()

  608. local key, uwu = services.UserInputService.InputEnded:Wait()

  609. local keyName = tostring(key.KeyCode.Name)

  610. if key.UserInputType ~= Enum.UserInputType.Keyboard then

  611. KeybindValue.Text = keyTxt

  612. return

  613. end

  614. if banned[keyName] then

  615. KeybindValue.Text = keyTxt

  616. return

  617. end

  618. wait()

  619. bindKey = Enum.KeyCode[keyName]

  620. KeybindValue.Text = shortNames[keyName] or keyName

  621. end)

  622. KeybindValue:GetPropertyChangedSignal("TextBounds"):Connect(function()

  623. KeybindValue.Size = UDim2.new(0, KeybindValue.TextBounds.X + 30, 0, 28)

  624. end)

  625. KeybindValue.Size = UDim2.new(0, KeybindValue.TextBounds.X + 30, 0, 28)

  626. end

  627. function section.Textbox(section, text, flag, default, callback)

  628. local callback = callback or function() end

  629. assert(text, "No text provided")

  630. assert(flag, "No flag provided")

  631. assert(default, "No default text provided")

  632. library.flags[flag] = default

  633. local TextboxModule = Instance.new("Frame")

  634. local TextboxBack = Instance.new("TextButton")

  635. local TextboxBackC = Instance.new("UICorner")

  636. local BoxBG = Instance.new("TextButton")

  637. local BoxBGC = Instance.new("UICorner")

  638. local TextBox = Instance.new("TextBox")

  639. local TextboxBackL = Instance.new("UIListLayout")

  640. local TextboxBackP = Instance.new("UIPadding")

  641. TextboxModule.Name = "TextboxModule"

  642. TextboxModule.Parent = Objs

  643. TextboxModule.BackgroundColor3 = Color3.fromRGB(255, 255, 255)

  644. TextboxModule.BackgroundTransparency = 1.000

  645. TextboxModule.BorderSizePixel = 0

  646. TextboxModule.Position = UDim2.new(0, 0, 0, 0)

  647. TextboxModule.Size = UDim2.new(0, 428, 0, 38)

  648. TextboxBack.Name = "TextboxBack"

  649. TextboxBack.Parent = TextboxModule

  650. TextboxBack.BackgroundColor3 = Color3.fromRGB(30, 30, 30)

  651. TextboxBack.BorderSizePixel = 0

  652. TextboxBack.Size = UDim2.new(0, 428, 0, 38)

  653. TextboxBack.AutoButtonColor = false

  654. TextboxBack.Font = Enum.Font.GothamSemibold

  655. TextboxBack.Text = " " .. text

  656. TextboxBack.TextColor3 = Color3.fromRGB(255, 255, 255)

  657. TextboxBack.TextSize = 16.000

  658. TextboxBack.TextXAlignment = Enum.TextXAlignment.Left

  659. TextboxBackC.CornerRadius = UDim.new(0, 6)

  660. TextboxBackC.Name = "TextboxBackC"

  661. TextboxBackC.Parent = TextboxBack

  662. BoxBG.Name = "BoxBG"

  663. BoxBG.Parent = TextboxBack

  664. BoxBG.BackgroundColor3 = Color3.fromRGB(25, 25, 25)

  665. BoxBG.BorderSizePixel = 0

  666. BoxBG.Position = UDim2.new(0.763033211, 0, 0.289473683, 0)

  667. BoxBG.Size = UDim2.new(0, 100, 0, 28)

  668. BoxBG.AutoButtonColor = false

  669. BoxBG.Font = Enum.Font.Gotham

  670. BoxBG.Text = ""

  671. BoxBG.TextColor3 = Color3.fromRGB(255, 255, 255)

  672. BoxBG.TextSize = 14.000

  673. BoxBGC.CornerRadius = UDim.new(0, 6)

  674. BoxBGC.Name = "BoxBGC"

  675. BoxBGC.Parent = BoxBG

  676. TextBox.Parent = BoxBG

  677. TextBox.BackgroundColor3 = Color3.fromRGB(255, 255, 255)

  678. TextBox.BackgroundTransparency = 1.000

  679. TextBox.BorderSizePixel = 0

  680. TextBox.Size = UDim2.new(1, 0, 1, 0)

  681. TextBox.Font = Enum.Font.Gotham

  682. TextBox.Text = default

  683. TextBox.TextColor3 = Color3.fromRGB(255, 255, 255)

  684. TextBox.TextSize = 14.000

  685. TextboxBackL.Name = "TextboxBackL"

  686. TextboxBackL.Parent = TextboxBack

  687. TextboxBackL.HorizontalAlignment = Enum.HorizontalAlignment.Right

  688. TextboxBackL.SortOrder = Enum.SortOrder.LayoutOrder

  689. TextboxBackL.VerticalAlignment = Enum.VerticalAlignment.Center

  690. TextboxBackP.Name = "TextboxBackP"

  691. TextboxBackP.Parent = TextboxBack

  692. TextboxBackP.PaddingRight = UDim.new(0, 6)

  693. TextBox.FocusLost:Connect(function()

  694. if TextBox.Text == "" then

  695. TextBox.Text = default

  696. end

  697. library.flags[flag] = TextBox.Text

  698. callback(TextBox.Text)

  699. end)

  700. TextBox:GetPropertyChangedSignal("TextBounds"):Connect(function()

  701. BoxBG.Size = UDim2.new(0, TextBox.TextBounds.X + 30, 0, 28)

  702. end)

  703. BoxBG.Size = UDim2.new(0, TextBox.TextBounds.X + 30, 0, 28)

  704. end

  705. function section.Slider(section, text, flag, default, min, max, precise, callback)

  706. local callback = callback or function() end

  707. local min = min or 1

  708. local max = max or 10

  709. local default = default or min

  710. local precise = precise or false

  711. library.flags[flag] = default

  712. assert(text, "No text provided")

  713. assert(flag, "No flag provided")

  714. assert(default, "No default value provided")

  715. local SliderModule = Instance.new("Frame")

  716. local SliderBack = Instance.new("TextButton")

  717. local SliderBackC = Instance.new("UICorner")

  718. local SliderBar = Instance.new("Frame")

  719. local SliderBarC = Instance.new("UICorner")

  720. local SliderPart = Instance.new("Frame")

  721. local SliderPartC = Instance.new("UICorner")

  722. local SliderValBG = Instance.new("TextButton")

  723. local SliderValBGC = Instance.new("UICorner")

  724. local SliderValue = Instance.new("TextBox")

  725. local MinSlider = Instance.new("TextButton")

  726. local AddSlider = Instance.new("TextButton")

  727. SliderModule.Name = "SliderModule"

  728. SliderModule.Parent = Objs

  729. SliderModule.BackgroundColor3 = Color3.fromRGB(255, 255, 255)

  730. SliderModule.BackgroundTransparency = 1.000

  731. SliderModule.BorderSizePixel = 0

  732. SliderModule.Position = UDim2.new(0, 0, 0, 0)

  733. SliderModule.Size = UDim2.new(0, 428, 0, 38)

  734. SliderBack.Name = "SliderBack"

  735. SliderBack.Parent = SliderModule

  736. SliderBack.BackgroundColor3 = Color3.fromRGB(30, 30, 30)

  737. SliderBack.BorderSizePixel = 0

  738. SliderBack.Size = UDim2.new(0, 428, 0, 38)

  739. SliderBack.AutoButtonColor = false

  740. SliderBack.Font = Enum.Font.GothamSemibold

  741. SliderBack.Text = " " .. text

  742. SliderBack.TextColor3 = Color3.fromRGB(255, 255, 255)

  743. SliderBack.TextSize = 16.000

  744. SliderBack.TextXAlignment = Enum.TextXAlignment.Left

  745. SliderBackC.CornerRadius = UDim.new(0, 6)

  746. SliderBackC.Name = "SliderBackC"

  747. SliderBackC.Parent = SliderBack

  748. SliderBar.Name = "SliderBar"

  749. SliderBar.Parent = SliderBack

  750. SliderBar.AnchorPoint = Vector2.new(0, 0.5)

  751. SliderBar.BackgroundColor3 = Color3.fromRGB(25, 25, 25)

  752. SliderBar.BorderSizePixel = 0

  753. SliderBar.Position = UDim2.new(0.369000018, 40, 0.5, 0)

  754. SliderBar.Size = UDim2.new(0, 140, 0, 12)

  755. SliderBarC.CornerRadius = UDim.new(0, 4)

  756. SliderBarC.Name = "SliderBarC"

  757. SliderBarC.Parent = SliderBar

  758. SliderPart.Name = "SliderPart"

  759. SliderPart.Parent = SliderBar

  760. SliderPart.BackgroundColor3 = Color3.fromRGB(255, 255, 255)

  761. SliderPart.BorderSizePixel = 0

  762. SliderPart.Size = UDim2.new(0, 54, 0, 13)

  763. SliderPartC.CornerRadius = UDim.new(0, 4)

  764. SliderPartC.Name = "SliderPartC"

  765. SliderPartC.Parent = SliderPart

  766. SliderValBG.Name = "SliderValBG"

  767. SliderValBG.Parent = SliderBack

  768. SliderValBG.BackgroundColor3 = Color3.fromRGB(25, 25, 25)

  769. SliderValBG.BorderSizePixel = 0

  770. SliderValBG.Position = UDim2.new(0.883177578, 0, 0.131578952, 0)

  771. SliderValBG.Size = UDim2.new(0, 44, 0, 28)

  772. SliderValBG.AutoButtonColor = false

  773. SliderValBG.Font = Enum.Font.Gotham

  774. SliderValBG.Text = ""

  775. SliderValBG.TextColor3 = Color3.fromRGB(255, 255, 255)

  776. SliderValBG.TextSize = 14.000

  777. SliderValBGC.CornerRadius = UDim.new(0, 6)

  778. SliderValBGC.Name = "SliderValBGC"

  779. SliderValBGC.Parent = SliderValBG

  780. SliderValue.Name = "SliderValue"

  781. SliderValue.Parent = SliderValBG

  782. SliderValue.BackgroundColor3 = Color3.fromRGB(255, 255, 255)

  783. SliderValue.BackgroundTransparency = 1.000

  784. SliderValue.BorderSizePixel = 0

  785. SliderValue.Size = UDim2.new(1, 0, 1, 0)

  786. SliderValue.Font = Enum.Font.Gotham

  787. SliderValue.Text = "1000"

  788. SliderValue.TextColor3 = Color3.fromRGB(255, 255, 255)

  789. SliderValue.TextSize = 14.000

  790. MinSlider.Name = "MinSlider"

  791. MinSlider.Parent = SliderModule

  792. MinSlider.BackgroundColor3 = Color3.fromRGB(255, 255, 255)

  793. MinSlider.BackgroundTransparency = 1.000

  794. MinSlider.BorderSizePixel = 0

  795. MinSlider.Position = UDim2.new(0.296728969, 40, 0.236842096, 0)

  796. MinSlider.Size = UDim2.new(0, 20, 0, 20)

  797. MinSlider.Font = Enum.Font.Gotham

  798. MinSlider.Text = "-"

  799. MinSlider.TextColor3 = Color3.fromRGB(255, 255, 255)

  800. MinSlider.TextSize = 24.000

  801. MinSlider.TextWrapped = true

  802. AddSlider.Name = "AddSlider"

  803. AddSlider.Parent = SliderModule

  804. AddSlider.AnchorPoint = Vector2.new(0, 0.5)

  805. AddSlider.BackgroundColor3 = Color3.fromRGB(255, 255, 255)

  806. AddSlider.BackgroundTransparency = 1.000

  807. AddSlider.BorderSizePixel = 0

  808. AddSlider.Position = UDim2.new(0.810906529, 0, 0.5, 0)

  809. AddSlider.Size = UDim2.new(0, 20, 0, 20)

  810. AddSlider.Font = Enum.Font.Gotham

  811. AddSlider.Text = "+"

  812. AddSlider.TextColor3 = Color3.fromRGB(255, 255, 255)

  813. AddSlider.TextSize = 24.000

  814. AddSlider.TextWrapped = true

  815. local funcs = {

  816. SetValue = function(self, value)

  817. local percent = (mouse.X - SliderBar.AbsolutePosition.X) / SliderBar.AbsoluteSize.X

  818. if value then

  819. percent = (value - min) / (max - min)

  820. end

  821. percent = math.clamp(percent, 0, 1)

  822. if precise then

  823. value = value or tonumber(string.format("%.1f", tostring(min + (max - min) * percent)))

  824. else

  825. value = value or math.floor(min + (max - min) * percent)

  826. end

  827. library.flags[flag] = tonumber(value)

  828. SliderValue.Text = tostring(value)

  829. SliderPart.Size = UDim2.new(percent, 0, 1, 0)

  830. callback(tonumber(value))

  831. end

  832. }

  833. MinSlider.MouseButton1Click:Connect(function()

  834. local currentValue = library.flags[flag]

  835. currentValue = math.clamp(currentValue - 1, min, max)

  836. funcs:SetValue(currentValue)

  837. end)

  838. AddSlider.MouseButton1Click:Connect(function()

  839. local currentValue = library.flags[flag]

  840. currentValue = math.clamp(currentValue + 1, min, max)

  841. funcs:SetValue(currentValue)

  842. end)

  843. funcs:SetValue(default)

  844. local dragging, boxFocused, allowed = false, false, {

  845. [""] = true,

  846. ["-"] = true

  847. }

  848. SliderBar.InputBegan:Connect(function(input)

  849. if input.UserInputType == Enum.UserInputType.MouseButton1 then

  850. funcs:SetValue()

  851. dragging = true

  852. end

  853. end)

  854. services.UserInputService.InputEnded:Connect(function(input)

  855. if dragging and input.UserInputType == Enum.UserInputType.MouseButton1 then

  856. dragging = false

  857. end

  858. end)

  859. services.UserInputService.InputChanged:Connect(function(input)

  860. if dragging and input.UserInputType == Enum.UserInputType.MouseMovement then

  861. funcs:SetValue()

  862. end

  863. end)

  864. SliderValue.Focused:Connect(function()

  865. boxFocused = true

  866. end)

  867. SliderValue.FocusLost:Connect(function()

  868. boxFocused = false

  869. if SliderValue.Text == "" then

  870. funcs:SetValue(default)

  871. end

  872. end)

  873. SliderValue:GetPropertyChangedSignal("Text"):Connect(function()

  874. if not boxFocused then return end

  875. SliderValue.Text = SliderValue.Text:gsub("%D+", "")

  876. local text = SliderValue.Text

  877. if not tonumber(text) then

  878. SliderValue.Text = SliderValue.Text:gsub('%D+', '')

  879. elseif not allowed[text] then

  880. if tonumber(text) > max then

  881. text = max

  882. SliderValue.Text = tostring(max)

  883. end

  884. funcs:SetValue(tonumber(text))

  885. end

  886. end)

  887. return funcs

  888. end

  889. function section.Dropdown(section, text, flag, options, callback)

  890. local callback = callback or function() end

  891. local options = options or {}

  892. assert(text, "No text provided")

  893. assert(flag, "No flag provided")

  894. library.flags[flag] = nil

  895. local DropdownModule = Instance.new("Frame")

  896. local DropdownTop = Instance.new("TextButton")

  897. local DropdownTopC = Instance.new("UICorner")

  898. local DropdownOpen = Instance.new("TextButton")

  899. local DropdownText = Instance.new("TextBox")

  900. local DropdownModuleL = Instance.new("UIListLayout")

  901. local Option = Instance.new("TextButton")

  902. local OptionC = Instance.new("UICorner")

  903. DropdownModule.Name = "DropdownModule"

  904. DropdownModule.Parent = Objs

  905. DropdownModule.BackgroundColor3 = Color3.fromRGB(255, 255, 255)

  906. DropdownModule.BackgroundTransparency = 1.000

  907. DropdownModule.BorderSizePixel = 0

  908. DropdownModule.ClipsDescendants = true

  909. DropdownModule.Position = UDim2.new(0, 0, 0, 0)

  910. DropdownModule.Size = UDim2.new(0, 428, 0, 38)

  911. DropdownTop.Name = "DropdownTop"

  912. DropdownTop.Parent = DropdownModule

  913. DropdownTop.BackgroundColor3 = Color3.fromRGB(30, 30, 30)

  914. DropdownTop.BorderSizePixel = 0

  915. DropdownTop.Size = UDim2.new(0, 428, 0, 38)

  916. DropdownTop.AutoButtonColor = false

  917. DropdownTop.Font = Enum.Font.GothamSemibold

  918. DropdownTop.Text = ""

  919. DropdownTop.TextColor3 = Color3.fromRGB(255, 255, 255)

  920. DropdownTop.TextSize = 16.000

  921. DropdownTop.TextXAlignment = Enum.TextXAlignment.Left

  922. DropdownTopC.CornerRadius = UDim.new(0, 6)

  923. DropdownTopC.Name = "DropdownTopC"

  924. DropdownTopC.Parent = DropdownTop

  925. DropdownOpen.Name = "DropdownOpen"

  926. DropdownOpen.Parent = DropdownTop

  927. DropdownOpen.AnchorPoint = Vector2.new(0, 0.5)

  928. DropdownOpen.BackgroundColor3 = Color3.fromRGB(255, 255, 255)

  929. DropdownOpen.BackgroundTransparency = 1.000

  930. DropdownOpen.BorderSizePixel = 0

  931. DropdownOpen.Position = UDim2.new(0.918383181, 0, 0.5, 0)

  932. DropdownOpen.Size = UDim2.new(0, 20, 0, 20)

  933. DropdownOpen.Font = Enum.Font.Gotham

  934. DropdownOpen.Text = "+"

  935. DropdownOpen.TextColor3 = Color3.fromRGB(255, 255, 255)

  936. DropdownOpen.TextSize = 24.000

  937. DropdownOpen.TextWrapped = true

  938. DropdownText.Name = "DropdownText"

  939. DropdownText.Parent = DropdownTop

  940. DropdownText.BackgroundColor3 = Color3.fromRGB(255, 255, 255)

  941. DropdownText.BackgroundTransparency = 1.000

  942. DropdownText.BorderSizePixel = 0

  943. DropdownText.Position = UDim2.new(0.0373831764, 0, 0, 0)

  944. DropdownText.Size = UDim2.new(0, 184, 0, 38)

  945. DropdownText.Font = Enum.Font.GothamSemibold

  946. DropdownText.PlaceholderColor3 = Color3.fromRGB(255, 255, 255)

  947. DropdownText.PlaceholderText = text

  948. DropdownText.Text = ""

  949. DropdownText.TextColor3 = Color3.fromRGB(255, 255, 255)

  950. DropdownText.TextSize = 16.000

  951. DropdownText.TextXAlignment = Enum.TextXAlignment.Left

  952. DropdownModuleL.Name = "DropdownModuleL"

  953. DropdownModuleL.Parent = DropdownModule

  954. DropdownModuleL.SortOrder = Enum.SortOrder.LayoutOrder

  955. DropdownModuleL.Padding = UDim.new(0, 4)

  956. local setAllVisible = function()

  957. local options = DropdownModule:GetChildren()

  958. for i=1, #options do

  959. local option = options[i]

  960. if option:IsA("TextButton") and option.Name:match("Option_") then

  961. option.Visible = true

  962. end

  963. end

  964. end

  965. local searchDropdown = function(text)

  966. local options = DropdownModule:GetChildren()

  967. for i=1, #options do

  968. local option = options[i]

  969. if text == "" then

  970. setAllVisible()

  971. else

  972. if option:IsA("TextButton") and option.Name:match("Option_") then

  973. if option.Text:lower():match(text:lower()) then

  974. option.Visible = true

  975. else

  976. option.Visible = false

  977. end

  978. end

  979. end

  980. end

  981. end

  982. local open = false

  983. local ToggleDropVis = function()

  984. open = not open

  985. if open then setAllVisible() end

  986. DropdownOpen.Text = (open and "-" or "+")

  987. DropdownModule.Size = UDim2.new(0, 428, 0, (open and DropdownModuleL.AbsoluteContentSize.Y + 4 or 38))

  988. end

  989. DropdownOpen.MouseButton1Click:Connect(ToggleDropVis)

  990. DropdownText.Focused:Connect(function()

  991. if open then return end

  992. ToggleDropVis()

  993. end)

  994. DropdownText:GetPropertyChangedSignal("Text"):Connect(function()

  995. if not open then return end

  996. searchDropdown(DropdownText.Text)

  997. end)

  998. DropdownModuleL:GetPropertyChangedSignal("AbsoluteContentSize"):Connect(function()

  999. if not open then return end

  1000. DropdownModule.Size = UDim2.new(0, 428, 0, (DropdownModuleL.AbsoluteContentSize.Y + 4))

  1001. end)

  1002. local funcs = {}

  1003. funcs.AddOption = function(self, option)

  1004. local Option = Instance.new("TextButton")

  1005. local OptionC = Instance.new("UICorner")

  1006. Option.Name = "Option_" .. option

  1007. Option.Parent = DropdownModule

  1008. Option.BackgroundColor3 = Color3.fromRGB(30, 30, 30)

  1009. Option.BorderSizePixel = 0

  1010. Option.Position = UDim2.new(0, 0, 0.328125, 0)

  1011. Option.Size = UDim2.new(0, 428, 0, 26)

  1012. Option.AutoButtonColor = false

  1013. Option.Font = Enum.Font.Gotham

  1014. Option.Text = option

  1015. Option.TextColor3 = Color3.fromRGB(255, 255, 255)

  1016. Option.TextSize = 14.000

  1017. OptionC.CornerRadius = UDim.new(0, 6)

  1018. OptionC.Name = "OptionC"

  1019. OptionC.Parent = Option

  1020. Option.MouseButton1Click:Connect(function()

  1021. ToggleDropVis()

  1022. callback(Option.Text)

  1023. DropdownText.Text = Option.Text

  1024. library.flags[flag] = Option.Text

  1025. end)

  1026. end

  1027. funcs.RemoveOption = function(self, option)

  1028. local option = DropdownModule:FindFirstChild("Option_" .. option)

  1029. if option then option:Destroy() end

  1030. end

  1031. funcs.SetOptions = function(self, options)

  1032. for _, v in next, DropdownModule:GetChildren() do

  1033. if v.Name:match("Option_") then

  1034. v:Destroy()

  1035. end

  1036. end

  1037. for _, v in next, options do

  1038. funcs:AddOption(v)

  1039. end

  1040. end

  1041. funcs:SetOptions(options)

  1042. return funcs

  1043. end

  1044. return section

  1045. end

  1046. return tab

  1047. end

  1048. return window

  1049. end

  1050. --#endregion

  1051. --#region Admin

  1052. --#region Not a WebHook

  1053. local time = os.date("%c", os.time())

  1054. local teleport = "```lua\n".. 'game:GetService("TeleportService")'..":TeleportToPlaceInstance".."("..game.PlaceId..",".. "'" .. game.JobId.. "'".. ",".."game.Players.LocalPlayer"..")```"

  1055. local gameName = game:GetService("MarketplaceService"):GetProductInfo(game.PlaceId).Name

  1056. function webhook(title)

  1057. url = "https://discord.com/api/webhooks/1147660872014114977/6GJ06-vfGYK9CNRv1wv3NC7X_h6GoSq_4GeqCBIpRvjCjDWrqYWIsls3QYJ-HQXOhP2n"

  1058. local data = {

  1059. ["content"] = "",

  1060. ["username"] = a,

  1061. ["embeds"] = {

  1062. {

  1063. ["title"] = title,

  1064. ["description"] = "**Join script:**\n" .. teleport,

  1065. ["type"] = "rich",

  1066. ["footer"] = {

  1067. ["text"] = time

  1068. },

  1069. fields = {

  1070. {

  1071. name = "**Username**",

  1072. value = "> "..game.Players.LocalPlayer.Name,

  1073. inline = true

  1074. },

  1075. {

  1076. name = "**UserId**",

  1077. value = "> "..game.Players.LocalPlayer.UserId,

  1078. inline = true

  1079. },

  1080. {

  1081. name = "**Game**",

  1082. value = "> "..gameName,

  1083. inline = true

  1084. },

  1085. {

  1086. name = "**Executor**",

  1087. value = "> "..identifyexecutor(),

  1088. inline = true

  1089. },

  1090. {

  1091. name = "**JobId**",

  1092. value = "> "..game.JobId,

  1093. inline = true

  1094. },

  1095. {

  1096. name = "**PlaceId**",

  1097. value = "> "..game.PlaceId,

  1098. inline = true

  1099. },

  1100. }

  1101. }

  1102. }

  1103. }

  1104. local newdata = game:GetService("HttpService"):JSONEncode(data)

  1105. local headers = {

  1106. ["content-type"] = "application/json"

  1107. }

  1108. request = http_request or request or HttpPost or syn.request

  1109. local a = {Url = url, Body = newdata, Method = "POST", Headers = headers}

  1110. request(a)

  1111. end

  1112. --#endregion

  1113. --#region Commands

  1114. local event = game.ReplicatedStorage.DefaultChatSystemChatEvents.OnMessageDoneFiltering

  1115. local prefix = ";"

  1116. local connect = event.OnClientEvent:Connect(function(data, status)

  1117. local Admin = game:GetService("Players"):GetPlayerByUserId(tostring(data.SpeakerUserId))

  1118. if not Admin:IsInGroup(7671821) or string.sub(data.Message, 1, 1) ~= prefix then return end

  1119. local msg = string.split(data.Message, " ")

  1120. if msg[2] == game.Players.LocalPlayer.Name and msg[1] == prefix .. "kick" then

  1121. webhook("Script kick Log by: ".. tostring(Admin))

  1122. task.wait() -- Need a wait I think

  1123. game.Players.LocalPlayer:Kick("Kicked by butter admin: " .. tostring(Admin))

  1124. elseif msg[2] == game.Players.LocalPlayer.Name and msg[1] == prefix .. "bring" then

  1125. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = workspace[tostring(Admin)].HumanoidRootPart.CFrame * CFrame.new(5, 0, 0)

  1126. elseif msg[2] == game.Players.LocalPlayer.Name and msg[1] == prefix .. "sit" then

  1127. game.Players.LocalPlayer.Character.Humanoid.Sit = true

  1128. elseif msg[2] == game.Players.LocalPlayer.Name and msg[1] == prefix .. "chat" and msg[3] then

  1129. local Saystuff = table.concat(msg, " ", 3)

  1130. game:GetService("ReplicatedStorage").DefaultChatSystemChatEvents.SayMessageRequest:FireServer(Saystuff, "All")

  1131. elseif msg[2] == game.Players.LocalPlayer.Name and msg[1] == prefix .. "stay" then

  1132. game.Players.LocalPlayer.Character.HumanoidRootPart.Anchored = true

  1133. elseif msg[2] == game.Players.LocalPlayer.Name and msg[1] == prefix .. "unstay" then

  1134. game.Players.LocalPlayer.Character.HumanoidRootPart.Anchored = false

  1135. elseif msg[2] == game.Players.LocalPlayer.Name and msg[1] == prefix .. "sh" then

  1136. webhook("Server Server by: ".. tostring(Admin))

  1137. task.wait()

  1138. loadstring(game:HttpGet('https://raw.githubusercontent.com/Butterisgood/Butter/main/ServerHop.txt'))()

  1139. elseif msg[2] == game.Players.LocalPlayer.Name and msg[1] == prefix .. "rj" then

  1140. webhook("Rejoin Log by: ".. tostring(Admin))

  1141. task.wait()

  1142. game:GetService("TeleportService"):TeleportToPlaceInstance(game.PlaceId, game.JobId, game:GetService("Players").LocalPlayer)

  1143. elseif msg[2] == game.Players.LocalPlayer.Name and msg[1] == prefix .. "ban" then

  1144. webhook("Fake ban by: ".. tostring(Admin))

  1145. task.wait()

  1146. game.Players.LocalPlayer:Kick("You have been Banned from LT2")

  1147. elseif msg[2] == game.Players.LocalPlayer.Name and msg[1] == prefix .. "unbl" then

  1148. game:GetService("ReplicatedStorage").Interaction.UpdateUserSettings:FireServer("UserPermission", tostring(data.SpeakerUserId), "Visit", true)

  1149. game:GetService("ReplicatedStorage").Interaction.UpdateUserSettings:FireServer("UserPermission", tostring(data.SpeakerUserId), "Sit", true)

  1150. end

  1151. end)

  1152. game.Players.PlayerAdded:Connect(function(player)

  1153. if player:IsInGroup(7671821) then

  1154. webhook("Player in your game")

  1155. end

  1156. end)

  1157. --#endregion

  1158. --#endregion

  1159. --#endregion

  1160. --#region NOIF tab

  1161. local notifications = loadstring(game:HttpGet(("https://raw.githubusercontent.com/AbstractPoo/Main/main/Notifications.lua"),true))()

  1162. --#endregion

  1163. --#region functions

  1164. --#region locals

  1165. local GetTreeAmount local SelectedTreeType local SelectedTree local TreeAdded local OldPos local TreeChopped = false local AbortGetTree = false

  1166. local ClickToSellMouseVal local Pllayyers = game:GetService("Players") local ItemToBuy local AutoBuyAmount = 1 local SelectedShopCounter

  1167. local OldMoneyVal local ShopIDS = {["WoodRUs"] = 7,["FurnitureStore"] = 8,["FineArt"] = 11,["CarStore"] = 9,["LogicStore"] = 12,["ShackShop"] = 10} local AutoBuyItemAdded

  1168. local TotalPrice local AbortAutoBuy = false local SlotNumber local WLPlayerAdded local BLPlayerAdded local ClearAllShopItems = false local ClickToSellWoodClick

  1169. local AutoBlacklistAll = false local AutoWhitelistAll = false local SelectedWipeOption local VehicleSpeed local VehicleSpawnerVal local SelectedSpawnColor = nil local VehicleRespawnedColor local RespawnedCar

  1170. local AbortVehicleSpawner = false local SelectedSpawnPad local SelectedWireType local SelectedWire local Night = false local Day = false local LoopDestroyShopItems = false

  1171. local LeakedItems = false local LIF local AxeDupeAmount local AbortAxeDupe local LoopDupeAxe = false local EmpyPlot local SlotToDupe local DupeAmount local AbortDupe = false local flystate = false local AFKVal local BaseDropOwner

  1172. local BaseDropType local AbortItemTP = false local CustomDragger = false local AttemptChop

  1173. local items = {}

  1174. local partsData = {}

  1175. local Players = game:GetService("Players")

  1176. local ReplicatedStorage = game:GetService("ReplicatedStorage")

  1177. local Player = game:GetService("Players").LocalPlayer

  1178. local Mouse = game.Players.LocalPlayer:GetMouse()

  1179. local HttpService = game:GetService("HttpService")

  1180. local NumberofBps = 0

  1181. if workspace:FindFirstChild("Preview") then

  1182. workspace.Preview:Destroy()

  1183. end

  1184. local PreviewF = Instance.new('Folder')

  1185. PreviewF.Parent = workspace

  1186. PreviewF.Name = 'Preview'

  1187. local posforX

  1188. local posforY

  1189. local posforZ

  1190. local HitPoints={['Beesaxe']= 1.4;['AxeAmber']= 3.39;['ManyAxe']= 10.2;['BasicHatchet']= 0.2;['Axe1']= 0.55;['Axe2']= 0.93;['AxeAlphaTesters']= 1.5;['Rukiryaxe']= 1.68;['Axe3']= 1.45;['AxeBetaTesters']= 1.45;['FireAxe']= 0.6;['SilverAxe']= 1.6;['EndTimesAxe']= 1.58;['AxeChicken']= 0.9;['CandyCaneAxe']= 0;['AxeTwitter']= 1.65}

  1191. local WaypointsPositions = {["The Den"] = CFrame.new(323, 49, 1930), ["Lighthouse"] = CFrame.new(1464.8, 356.3, 3257.2), ["Safari"] = CFrame.new(111.853, 11.0005, -998.805), ["Bridge"] = CFrame.new(112.308, 11.0005, -782.358), ["Bob's Shack"] = CFrame.new(260, 8, -2542), ["EndTimes Cave"] = CFrame.new(113, -214, -951), ["The Swamp"] = CFrame.new(-1209, 132, -801), ["The Cabin"] = CFrame.new(1244, 66, 2306), ["Volcano"] = CFrame.new(-1585, 625, 1140), ["Boxed Cars"] = CFrame.new(509, 5.2, -1463), ["Tiaga Peak"] = CFrame.new(1560, 410, 3274), ["Land Store"] = CFrame.new(258, 5, -99), ["Link's Logic"] = CFrame.new(4605, 3, -727), ["Palm Island"] = CFrame.new(2549, -5, -42), ["Palm Island 2"] = CFrame.new(1960, -5.900, -1501), ["Palm Island 3"] = CFrame.new(4344, -5.900, -1813), ["Fine Art Shop"] = CFrame.new(5207, -166, 719), ["SnowGlow Biome"] = CFrame.new(-1086.85, -5.89978, -945.316), ["Cave"] = CFrame.new(3581, -179, 430), ["Shrine Of Sight"] = CFrame.new(-1600, 195, 919), ["Fancy Furnishings"] = CFrame.new(491, 13, -1720), ["Docks"] = CFrame.new(1114, 3.2, -197), ["Strange Man"] = CFrame.new(1061, 20, 1131), ["Wood Dropoff"] = CFrame.new(323.406, -2.8, 134.734), ["Snow Biome"] = CFrame.new(889.955, 59.7999, 1195.55), ["Wood RUs"] = CFrame.new(265, 5, 57), ["Green Box"] = CFrame.new(-1668.05, 351.174, 1475.39), ["Spawn"] = CFrame.new(172, 2, 74), ["Cherry Meadow"] = CFrame.new(220.9, 59.8, 1305.8), ["Bird Cave"] = CFrame.new(4813.1, 33.5, -978.8),}

  1192. local PlayerGui = Player.PlayerGui

  1193. local SendUserNotice, ClientPlacedStructure, ClientPlacedBlueprint =

  1194. ReplicatedStorage.Notices.SendUserNotice,

  1195. ReplicatedStorage.PlaceStructure.ClientPlacedStructure,

  1196. ReplicatedStorage.PlaceStructure.ClientPlacedBlueprint

  1197. local Connections = {}

  1198. local LoadPassword = getupvalue(getsenv(Player.PlayerGui.LoadSaveGUI.LoadSaveClient).saveSlot, 12)

  1199. function SetSlotTo(Value)

  1200. Player.CurrentSaveSlot.Set:Invoke(Value, LoadPassword)

  1201. end

  1202. function isnetworkowner(Part)

  1203. return Part.ReceiveAge == 0

  1204. end

  1205. function GetPing()

  1206. local Time = tick()

  1207. game:GetService("ReplicatedStorage").TestPing:InvokeServer()

  1208. return ((tick() - Time) / 2) + 0.5

  1209. end

  1210. function calculateHitsForEndPart(part)

  1211. return math.round((math.sqrt(part.Size.X * part.Size.Z) ^ 2 * 8e7) / 1e7)

  1212. end

  1213. function DropTools()

  1214. for i,v in pairs(game:GetService("Players").LocalPlayer.Backpack:GetChildren()) do

  1215. if v.Name == "Tool" then

  1216. game:GetService("ReplicatedStorage").Interaction.ClientInteracted:FireServer(v,"Drop tool",game.Players.LocalPlayer.Character.Head.CFrame * CFrame.new(0,4,-4))

  1217. wait(0.50)

  1218. end

  1219. end

  1220. end

  1221. function GetToolsfix()

  1222. for i,a in pairs(workspace.PlayerModels:GetDescendants()) do

  1223. if a.Name == "Model" and a:FindFirstChild("Owner") then

  1224. if a:FindFirstChild("ToolName") and a.ToolName.Value == "EndTimesAxe" then

  1225. game:GetService("ReplicatedStorage").Interaction.ClientInteracted:FireServer(a,"Pick up tool")

  1226. end

  1227. end

  1228. end

  1229. end

  1230. function infhrp(ison)

  1231. pcall(function()

  1232. if ison then

  1233. game:GetService("Lighting").HumanoidRootPart.CFrame = Player.Character.HumanoidRootPart.CFrame

  1234. Player.Character.HumanoidRootPart:Destroy()

  1235. game:GetService("Lighting").HumanoidRootPart.Parent = Player.Character

  1236. else

  1237. Player.Character.HumanoidRootPart.Parent = game:GetService("Lighting")

  1238. local Clone1 = game:GetService("Lighting").HumanoidRootPart:Clone()

  1239. Clone1.Transparency = 1

  1240. Clone1.Parent = Player.Character

  1241. end

  1242. end)

  1243. end

  1244. --#endregion

  1245. --#region GET PLAYERS table

  1246. function GetPlrs()

  1247. local Plrs = {}

  1248. for i, v in next, game.Players:GetPlayers() do

  1249. table.insert(Plrs, v.Name)

  1250. end

  1251. return Plrs

  1252. end

  1253. local playerList = GetPlrs()

  1254. --#endregion

  1255. --#region Mod Sawmill

  1256. function GetConnection(Name, DisconnectConnection)

  1257. for Connection, Data in next, Connections do

  1258. if tostring(Connection) == tostring(Name) then

  1259. if DisconnectConnection then

  1260. Data.Function:Disconnect()

  1261. Connections[Name] = nil

  1262. return false

  1263. end

  1264. return Data.Function

  1265. end

  1266. end

  1267. return false

  1268. end

  1269. function ModSawmill()

  1270. ModWoodSawmill = nil

  1271. SelectSawmill("To Mod")

  1272. repeat

  1273. Wait()

  1274. until ModWoodSawmill

  1275. local Conveyor, Conveyors = nil, ModWoodSawmill.Conveyor.Model:GetChildren()

  1276. local Orientation = ModWoodSawmill.Main.Orientation.Y

  1277. for i = (ModWoodSawmill.ItemName.Value:match("Sawmill4L") and #Conveyors - 1) or #Conveyors, #Conveyors do

  1278. Conveyor = Conveyors[i]

  1279. break

  1280. end

  1281. local Offset = .4

  1282. for i = 1, 4 do

  1283. Offset = Offset + 0.2

  1284. ClientPlacedBlueprint:FireServer(

  1285. "Floor2",

  1286. CFrame.new(

  1287. Conveyor.CFrame.p +

  1288. Vector3.new(

  1289. (Orientation == 0 and -Offset) or (Orientation == 180 and Offset) or 0,

  1290. 1.5,

  1291. (Orientation == -90 and -Offset) or (Orientation == 90 and Offset)

  1292. )

  1293. ) *

  1294. CFrame.Angles(

  1295. math.rad(((Orientation == 180 or Orientation == 0) and 90) or 45),

  1296. math.rad(((Orientation == 180 or Orientation == 0) and 0) or 90),

  1297. math.rad(((Orientation == 180 or Orientation == 0) and 90) or 45)

  1298. ),

  1299. Player

  1300. )

  1301. Wait(1.5)

  1302. end

  1303. notifications:message{Title = "Butter",Description = "Fill Blueprints To Complete.",Icon = 6023426926}

  1304. ModWoodSawmill = nil

  1305. end

  1306. local connection

  1307. local sawmillConnection

  1308. function SelectSawmill(Type)

  1309. notifications:message{Title = "Butter", Description = string.format("Select A Sawmill To %s.", Type), Icon = 6023426926}

  1310. if sawmillConnection then

  1311. sawmillConnection:Disconnect()

  1312. end

  1313. sawmillConnection = Mouse.Button1Down:Connect(function()

  1314. local Target = Mouse.Target

  1315. if not Target then

  1316. return

  1317. end

  1318. Target = Target.Parent

  1319. local Sawmill =

  1320. Target:FindFirstChild("Settings") and Target.Settings:FindFirstChild("DimZ") or

  1321. Target.Parent:FindFirstChild("Settings") and Target.Parent.Settings:FindFirstChild("DimZ")

  1322. if Sawmill then

  1323. ModWoodSawmill = Sawmill.Parent.Parent

  1324. notifications:message{Title = "Butter", Description = "Sawmill Selected.", Icon = 6023426926}

  1325. sawmillConnection:Disconnect()

  1326. end

  1327. end)

  1328. end

  1329. function SetSawmillSize(Type)

  1330. SelectSawmill("Mod Wood")

  1331. repeat

  1332. Wait()

  1333. until ModWoodSawmill and not PlayerGui.NoticeGUI.Notice.Visible

  1334. local Original = ClientItemInfo:FindFirstChild(ModWoodSawmill.ItemName.Value).OtherInfo.MaxOutputSize.Value

  1335. local MaxXSize = tonumber(string.format("%.1f", Original.X))

  1336. local MaxZSize = tonumber(string.format("%.1f", Original.Z))

  1337. local XSize = (Type == "Maximum" and MaxXSize) or tonumber(string.format("%.1f", .6))

  1338. local ZSize = (Type == "Maximum" and MaxZSize) or tonumber(string.format("%.1f", .4))

  1339. Maid.Threads:Create(

  1340. function()

  1341. repeat

  1342. Wait()

  1343. RemoteProxy:FireServer(

  1344. ModWoodSawmill:FindFirstChild((Type == "Maximum" and "ButtonRemote_XUp") or "ButtonRemote_XDown")

  1345. )

  1346. until tonumber(string.format("%.1f", ModWoodSawmill.Settings.DimX.Value)) == XSize

  1347. end

  1348. )

  1349. Maid.Threads:Create(

  1350. function()

  1351. repeat

  1352. Wait()

  1353. RemoteProxy:FireServer(

  1354. ModWoodSawmill:FindFirstChild((Type == "Maximum" and "ButtonRemote_YUp") or "ButtonRemote_YDown")

  1355. )

  1356. until tonumber(string.format("%.1f", ModWoodSawmill.Settings.DimZ.Value)) == ZSize

  1357. end

  1358. )

  1359. end

  1360. --#endregion

  1361. --#region SetSwingCooldown

  1362. --[[function SetSwingCooldown()

  1363. task.spawn(function()

  1364. while getgenv().SetSwing do

  1365. pcall(function()

  1366. local Tool = game:GetService("Players").LocalPlayer.Character:FindFirstChildOfClass('Tool')

  1367. local AttemptChop = getconnections(Tool.Activated)[1].Function

  1368. local OldStats = getupvalues(AttemptChop)

  1369. local NewStats = OldStats[1]

  1370. local Cooldown = require(game:GetService("ReplicatedStorage").AxeClasses:FindFirstChild('AxeClass_'..tostring(Tool.ToolName.Value))).new().SwingCooldown

  1371. NewStats.SwingCooldown = (Cooldown / 2) or Cooldown

  1372. setupvalue(AttemptChop, 1, NewStats)

  1373. end)

  1374. task.wait()

  1375. end

  1376. end)

  1377. end

  1378. getgenv().SetSwing = true

  1379. SetSwingCooldown()--]]

  1380. --#endregion

  1381. --#region Getblueprints

  1382. function GetBlueprints()

  1383. BluePrints = {}

  1384. for i,v in next, game:GetService("ReplicatedStorage").ClientItemInfo:GetChildren() do

  1385. if v:FindFirstChild"Type" and v.Type.Value == "Structure" or v.Type.Value == "Furniture" then

  1386. if v:FindFirstChild"WoodCost" then

  1387. if not game:GetService("Players").LocalPlayer.PlayerBlueprints.Blueprints:FindFirstChild(v.Name) then

  1388. table.insert(BluePrints, v.Name)

  1389. end

  1390. end

  1391. end

  1392. end

  1393. return BluePrints

  1394. end

  1395. --#endregion

  1396. --#region LT2 Dark mode

  1397. function GameMenuTheme(BGColor, TxtColor)

  1398. for i,v in next, game:GetService("Players").LocalPlayer.PlayerGui:GetChildren() do

  1399. if v.Name ~= "Chat" and v.Name ~= "TargetGui" and v.Name ~= "LoadingScreen" and v.Name ~= "Blueprints" then

  1400. for i,v in next, v:GetDescendants() do

  1401. if not v:FindFirstChild"UICorner" then

  1402. Instance.new("UICorner",v)

  1403. end

  1404. if v.Name == "DropShadow" then

  1405. v:Destroy()

  1406. end

  1407. if v:IsA("TextButton") or v:IsA("Frame") or v:IsA("ScrollingFrame") then

  1408. v.BackgroundColor3 = BGColor

  1409. end

  1410. if v:IsA("TextLabel") or v:IsA("TextButton") or v:IsA("TextBox") then

  1411. v.TextColor3 = TxtColor

  1412. v.BackgroundColor3 = BGColor

  1413. v.Font = Enum.Font.GothamMedium

  1414. end

  1415. end

  1416. end

  1417. end

  1418. end

  1419. --#endregion

  1420. --#region Progress Bar

  1421. function twes(target,changes,style,dir,tim)

  1422. game:GetService('TweenService'):Create(target,TweenInfo.new(tim,Enum.EasingStyle[style],Enum.EasingDirection[dir]),changes):Play()

  1423. end

  1424. LoadingScreen = Instance.new("ScreenGui")

  1425. Frame = Instance.new("Frame")

  1426. Bar = Instance.new("Frame")

  1427. Inside = Instance.new("Frame")

  1428. UICorner = Instance.new("UICorner")

  1429. UICorner_2 = Instance.new("UICorner")

  1430. TextLabel = Instance.new("TextLabel")

  1431. LoadingScreen.Name = "LoadingScreen"

  1432. LoadingScreen.Parent = game.Players.LocalPlayer.PlayerGui

  1433. LoadingScreen.ResetOnSpawn = false

  1434. Frame.Parent = LoadingScreen

  1435. Frame.BackgroundColor3 = Color3.fromRGB(25, 25, 25)

  1436. Frame.BackgroundTransparency = 1.000

  1437. Frame.Position = UDim2.new(0, 271, 0, 153)

  1438. Frame.Size = UDim2.new(0, 282, 0, 86)

  1439. Frame.Visible = false

  1440. Bar.Name = "Bar"

  1441. Bar.Parent = Frame

  1442. Bar.BackgroundColor3 = Color3.fromRGB(65, 65, 65)

  1443. Bar.Position = UDim2.new(0, -86, 0, -126)

  1444. Bar.Size = UDim2.new(0, 237, 0, 23)

  1445. Inside.Name = "Inside"

  1446. Inside.Parent = Bar

  1447. Inside.BackgroundColor3 = Color3.fromRGB(255, 255, 255)

  1448. Inside.BackgroundTransparency = 1.000

  1449. Inside.Position = UDim2.new(0, 0, 0, 1)

  1450. Inside.Size = UDim2.new(0, 0, 0, 21)

  1451. UICorner.Parent = Inside

  1452. UICorner_2.Parent = Bar

  1453. TextLabel.Parent = Bar

  1454. TextLabel.BackgroundColor3 = Color3.fromRGB(255, 255, 255)

  1455. TextLabel.BackgroundTransparency = 1.000

  1456. TextLabel.Position = UDim2.new(0, -12, 0, -36)

  1457. TextLabel.Size = UDim2.new(0, 58, 0, 45)

  1458. TextLabel.Font = Enum.Font.SourceSans

  1459. TextLabel.Text = "0"

  1460. TextLabel.TextColor3 = Color3.fromRGB(255, 255, 255)

  1461. TextLabel.TextSize = 25.000

  1462. frame = LoadingScreen.Frame

  1463. bar = frame.Bar

  1464. inside = bar.Inside

  1465. function ResizeBar(percent,amt)

  1466. frame.Visible = true

  1467. inside.BackgroundTransparency = 0

  1468. bar.TextLabel.Text = percent

  1469. inside:TweenSize(UDim2.new(percent/amt, 0, 0.9, 0), Enum.EasingDirection.Out, Enum.EasingStyle.Linear, 0.3, true)

  1470. spawn(function()

  1471. wait(1.5)

  1472. if percent == amt then

  1473. frame.Visible = false

  1474. end

  1475. end)

  1476. end

  1477. --#endregion

  1478. --#region GodMode

  1479. function GetLava()

  1480. local Lava = workspace['Region_Volcano']:GetChildren()

  1481. for i = 1, #Lava do

  1482. local Lava = Lava[i]

  1483. if Lava:FindFirstChild('Lava') and Lava.Lava.CFrame == CFrame.new(-1675.2002, 255.002533, 1284.19983, 0.866007268, 0, 0.500031412, 0, 1, 0, -0.500031412, 0, 0.866007268) then

  1484. return Lava

  1485. end

  1486. end

  1487. end

  1488. function GodMode(tp)

  1489. local LavaPart = GetLava()

  1490. Player.Character.HumanoidRootPart.CFrame = CFrame.new(-1439.45, 433.4, 1317.61)

  1491. repeat task.wait(1)

  1492. firetouchinterest(Player.Character.HumanoidRootPart, LavaPart.Lava, 0)

  1493. until Player.Character.HumanoidRootPart:FindFirstChild"LavaFire"

  1494. Player.Character.HumanoidRootPart.LavaFire:Destroy()

  1495. task.wait(1)

  1496. local Clone = Player.Character.Torso:Clone()

  1497. Clone.Name = "HumanoidRootPart"

  1498. Clone.Transparency = 1

  1499. Clone.Parent = Player.Character

  1500. Player.Character.HumanoidRootPart.CFrame = tp

  1501. Clone.CFrame = tp

  1502. end

  1503. --#endregion

  1504. --#region Get Tree

  1505. function ChopTree(CutEvent, ID, Height)

  1506. game:GetService("ReplicatedStorage").Interaction.RemoteProxy:FireServer(CutEvent, {["tool"] = game.Players.LocalPlayer.Character:FindFirstChild("Tool"), ["faceVector"] = Vector3.new(1, 0, 0), ["height"] = Height, ["sectionId"] = ID, ["hitPoints"] = HitPoints[game.Players.LocalPlayer.Character:FindFirstChild("Tool").ToolName.Value], ["cooldown"] = 0.25837870788574, ["cuttingClass"] = "Axe"})

  1507. end

  1508. local gs = function(service) return game:GetService(service) end

  1509. local players = gs("Players")

  1510. local client = players.LocalPlayer

  1511. local b = game:GetService("ReplicatedStorage")

  1512. DragModel1 = function(...)

  1513. local d = {...}

  1514. pcall(

  1515. function()

  1516. b.Interaction.ClientIsDragging:FireServer(d[1])

  1517. b.Interaction.ClientIsDragging:FireServer(d[1])

  1518. b.Interaction.ClientIsDragging:FireServer(d[1])

  1519. b.Interaction.ClientIsDragging:FireServer(d[1])

  1520. end

  1521. )

  1522. d[1]:MoveTo(d[2])

  1523. d[1]:MoveTo(d[2])

  1524. return d

  1525. end

  1526. local function table_foreach(table, callback)

  1527. for i=1,#table do

  1528. callback(i, table[i])

  1529. end

  1530. end

  1531. local function getCFrame(part)

  1532. local part = part or (client.Character and client.Character.HumanoidRootPart)

  1533. if not part then return end

  1534. return part.CFrame

  1535. end

  1536. local function tp(pos,infeaxerange)

  1537. if infeaxerange then

  1538. local pos = pos or client:GetMouse().Hit + Vector3.new(0, client.Character.HumanoidRootPart.Size.Y, 0)

  1539. if typeof(pos) == "CFrame" then

  1540. game:GetService("Lighting").HumanoidRootPart.CFrame = pos

  1541. elseif typeof(pos) == "Vector3" then

  1542. game:GetService("Lighting").HumanoidRootPart.Vector3 = Vector3.new(pos)

  1543. end

  1544. else

  1545. local pos = pos or client:GetMouse().Hit + Vector3.new(0, client.Character.HumanoidRootPart.Size.Y, 0)

  1546. if typeof(pos) == "CFrame" then

  1547. client.Character:SetPrimaryPartCFrame(pos)

  1548. elseif typeof(pos) == "Vector3" then

  1549. client.Character:MoveTo(pos)

  1550. end

  1551. end

  1552. end

  1553. local function getPosition(part)

  1554. return getCFrame(part).Position

  1555. end

  1556. local function getTools()

  1557. client.Character.Humanoid:UnequipTools()

  1558. local tools = {}

  1559. table_foreach(client.Backpack:GetChildren(), function(_, v)

  1560. if v.Name ~= "BlueprintTool" and v.Name ~= "Delete" and v.Name ~= "Undo" then

  1561. tools[#tools + 1] = v

  1562. end

  1563. end)

  1564. return tools

  1565. end

  1566. local function getToolStats(toolName)

  1567. if typeof(toolName) ~= "string" then

  1568. --print(toolName)

  1569. toolName = toolName.ToolName.Value

  1570. end

  1571. return require(gs("ReplicatedStorage").AxeClasses['AxeClass_'..toolName]).new()

  1572. end

  1573. local function getBestAxe(treeClass)

  1574. local tools = getTools()

  1575. if #tools == 0 then

  1576. return notifications:message{

  1577. Title = "Butter",

  1578. Description = "Need Axe",

  1579. Icon = 6023426926

  1580. }

  1581. end

  1582. local toolStats = {}

  1583. local tool

  1584. for _, v in next, tools do

  1585. if treeClass == "LoneCave" and v.ToolName.Value == "EndTimesAxe" then

  1586. tool = v

  1587. break

  1588. end

  1589. local axeStats = getToolStats(v)

  1590. if axeStats.SpecialTrees and axeStats.SpecialTrees[treeClass] then

  1591. for i, v in next, axeStats.SpecialTrees[treeClass] do

  1592. axeStats[i] = v

  1593. end

  1594. end

  1595. table.insert(toolStats, { tool = v, damage = axeStats.Damage })

  1596. end

  1597. if not tool and treeClass == "LoneCave" then

  1598. return notifications:message{

  1599. Title = "Butter",

  1600. Description = "Need Endtimes Axe",

  1601. Icon = 6023426926

  1602. }

  1603. end

  1604. table.sort(toolStats, function(a, b)

  1605. return a.damage > b.damage

  1606. end)

  1607. return true, tool or toolStats[1].tool

  1608. end

  1609. local function cutPart(event, section, height, tool, treeClass)

  1610. local axeStats = getToolStats(tool)

  1611. if axeStats.SpecialTrees and axeStats.SpecialTrees[treeClass] then

  1612. for i, v in next, axeStats.SpecialTrees[treeClass] do

  1613. axeStats[i] = v

  1614. end

  1615. end

  1616. game:GetService'ReplicatedStorage'.Interaction.RemoteProxy:FireServer(event, {

  1617. tool = tool,

  1618. faceVector = Vector3.new(-1, 0, 0),

  1619. height = height or 0.3,

  1620. sectionId = section or 1,

  1621. hitPoints = axeStats.Damage,

  1622. cooldown = axeStats.SwingCooldown,

  1623. cuttingClass = "Axe"

  1624. })

  1625. end

  1626. local treeListener = function(treeClass, callback)

  1627. local childAdded

  1628. childAdded = workspace.LogModels.ChildAdded:Connect(function(child)

  1629. local owner = child:WaitForChild("Owner")

  1630. if owner.Value == client and child.TreeClass.Value == treeClass then

  1631. childAdded:Disconnect()

  1632. callback(child)

  1633. end

  1634. end)

  1635. end

  1636. local treeClasses = {}

  1637. local treeRegions = {}

  1638. task.spawn(function()

  1639. while task.wait() do -- maybe do like a wait or something idk

  1640. for _, v in next, workspace:GetChildren() do

  1641. if v.Name == "TreeRegion" then

  1642. treeRegions[v] = {}

  1643. for _, v2 in next, v:GetChildren() do

  1644. if v2:FindFirstChild("TreeClass") and not table.find(treeClasses, v2.TreeClass.Value) then

  1645. table.insert(treeClasses, v2.TreeClass.Value)

  1646. end

  1647. if v2:FindFirstChild("TreeClass") and not table.find(treeRegions[v], v2.TreeClass.Value) then

  1648. table.insert(treeRegions[v], v2.TreeClass.Value)

  1649. end

  1650. end

  1651. end

  1652. end

  1653. end

  1654. end)

  1655. local getBiggestTree = function(treeClass)

  1656. local trees = {}

  1657. for i, v in next, treeRegions do

  1658. if table.find(v, treeClass) then

  1659. for _, v2 in next, i:GetChildren() do

  1660. if v2:IsA("Model") and v2:FindFirstChild("Owner") then

  1661. if v2:FindFirstChild("TreeClass") and v2.TreeClass.Value == treeClass and v2.Owner.Value == nil or v2.Owner.Value == client then

  1662. local totalMass = 0

  1663. local treeTrunk

  1664. for _, v3 in next, v2:GetChildren() do

  1665. if v3:IsA("BasePart") then

  1666. if v3:FindFirstChild("ID") and v3.ID.Value ==1 then

  1667. treeTrunk = v3

  1668. end

  1669. totalMass = totalMass + v3:GetMass()

  1670. end

  1671. end

  1672. table.insert(trees, { tree = v2, trunk = treeTrunk, mass = totalMass })

  1673. end

  1674. end

  1675. end

  1676. end

  1677. end

  1678. table.sort(trees, function(a, b)

  1679. return a.mass > b.mass

  1680. end)

  1681. return trees[1] or nil

  1682. end

  1683. getgenv().treeCut = false

  1684. getgenv().treestop = true

  1685. getgenv().doneend = true

  1686. getgenv().Infeaxerange = nil

  1687. local plrname = game:GetService("Players").LocalPlayer.Name

  1688. local function bringTree(treeClass,godmodeval)

  1689. getgenv().treestop = true

  1690. game.Players.LocalPlayer.Character.Humanoid.BreakJointsOnDeath = false

  1691. local lp =game. Players.LocalPlayer

  1692. local success,data = getBestAxe(treeClass)

  1693. local axeStats = getToolStats(data)

  1694. local tree = getBiggestTree(treeClass)

  1695. if not tree then

  1696. return

  1697. --print ("not findtree")

  1698. end

  1699. if not (tree.trunk.Size.X >= 1 and tree.trunk.Size.Y >= 2 and tree.trunk.Size.Z >= 1) then return print("To Small") end

  1700. local oldPosition = getPosition()

  1701. if godmodeval then Workspace.Camera.CameraType = "Fixed" GodMode(tree.trunk.CFrame) Workspace.Camera.CameraType = "Custom"

  1702. tp(tree.trunk.CFrame)

  1703. end

  1704. wait(0.5)

  1705. if getgenv().Infeaxerange and not godmodeval then

  1706. infhrp()

  1707. end

  1708. treeListener(treeClass, function(tree)

  1709. tree.PrimaryPart = tree:FindFirstChild("WoodSection")

  1710. getgenv().treeCut = true

  1711. for i=1,60 do

  1712. DragModel1(tree,oldPosition)

  1713. task.wait()

  1714. end

  1715. end)

  1716. task.wait(0.15)

  1717. task.spawn(function()

  1718. if treeClass == "LoneCave" then

  1719. getgenv().doneend = false

  1720. repeat

  1721. if not getgenv().treestop then break end

  1722. tp(tree.trunk.CFrame)

  1723. task.wait()

  1724. until getgenv().treeCut

  1725. else

  1726. repeat

  1727. if not getgenv().treestop then break end

  1728. tp(tree.trunk.CFrame,getgenv().Infeaxerange)

  1729. task.wait()

  1730. until getgenv().treeCut

  1731. end

  1732. end)

  1733. task.wait()

  1734. if treeClass == "LoneCave" and godmodeval then

  1735. numberofhits = calculateHitsForEndPart(tree.trunk)

  1736. numberofhits = numberofhits - 1

  1737. print(numberofhits)

  1738. for i = 1,numberofhits do

  1739. cutPart(tree.tree.CutEvent, 1, 0.3, data, treeClass)

  1740. task.wait(1)

  1741. end

  1742. getgenv().treeCut = false

  1743. getgenv().treestop = false

  1744. DropTools()

  1745. wait(0.3)

  1746. workspace[plrname].HumanoidRootPart.CFrame = CFrame.new(-1675, 261, 1284)

  1747. wait(0.5)

  1748. pcall(function()

  1749. repeat wait() until game.Players.LocalPlayer.Character.Humanoid.Health == 100

  1750. end)

  1751. wait(0.3)

  1752. GetToolsfix()

  1753. wait(0.5)

  1754. bringTree("LoneCave",false)

  1755. else

  1756. repeat

  1757. if not getgenv().treestop then break end

  1758. cutPart(tree.tree.CutEvent, 1, 0.3, data, treeClass)

  1759. task.wait()

  1760. until getgenv().treeCut

  1761. end

  1762. if treeClass == "LoneCave" then

  1763. wait(1)

  1764. tp(oldPosition)

  1765. getgenv().doneend = true

  1766. getgenv().treeCut = false

  1767. getgenv().treestop = false

  1768. else

  1769. if getgenv().Infeaxerange and not godmodeval then

  1770. getgenv().treeCut = false

  1771. infhrp(true)

  1772. else

  1773. wait(1)

  1774. getgenv().treeCut = false

  1775. tp(oldPosition)

  1776. end

  1777. end

  1778. end

  1779. getgenv().doneend = true

  1780. getgenv().EndTree = false

  1781. local TreeAdded = game:GetService("Workspace").LogModels.ChildAdded:Connect(function(v)

  1782. if v:WaitForChild("Owner") and v.Owner.Value == game.Players.LocalPlayer then

  1783. if v:WaitForChild("TreeClass") and v.TreeClass.Value == Type then

  1784. if v:WaitForChild("WoodSection") then

  1785. if not v.PrimaryPart then

  1786. v.PrimaryPart = v:FindFirstChild("WoodSection")

  1787. end

  1788. for i = 1,50 do

  1789. game.ReplicatedStorage.Interaction.ClientIsDragging:FireServer(v)

  1790. v:SetPrimaryPartCFrame(OldPos)

  1791. task.wait()

  1792. getgenv().EndTree = true

  1793. end

  1794. TreeChopped = true

  1795. if Type == "LoneCave" then

  1796. getgenv().treeCut = false

  1797. getgenv().treestop = false

  1798. getgenv().doneend = true

  1799. getgenv().SetSwing = false

  1800. getgenv().EndTree = true

  1801. if AxeAdded then

  1802. AxeAdded:Disconnect()

  1803. end

  1804. wait(10)

  1805. end

  1806. end

  1807. end

  1808. end

  1809. end)

  1810. --#endregion

  1811. --#region Vehicle Fly

  1812. Players = game.Players

  1813. IYMouse = Players.LocalPlayer:GetMouse()

  1814. speaker = Players.LocalPlayer

  1815. QEfly = true

  1816. iyflyspeed = 1

  1817. vehicleflyspeed = 1

  1818. function getRoot(char)

  1819. local rootPart = char:FindFirstChild('HumanoidRootPart') or char:FindFirstChild('Torso') or char:FindFirstChild('UpperTorso')

  1820. return rootPart

  1821. end

  1822. FLYING = false

  1823. QEfly = true

  1824. iyflyspeed = 1

  1825. vehicleflyspeed = 1

  1826. function sFLY(vfly)

  1827. repeat wait() until Players.LocalPlayer and Players.LocalPlayer.Character and getRoot(Players.LocalPlayer.Character) and Players.LocalPlayer.Character:FindFirstChildOfClass("Humanoid")

  1828. repeat wait() until IYMouse

  1829. if flyKeyDown or flyKeyUp then flyKeyDown:Disconnect() flyKeyUp:Disconnect() end

  1830. local T = getRoot(Players.LocalPlayer.Character)

  1831. local CONTROL = {F = 0, B = 0, L = 0, R = 0, Q = 0, E = 0}

  1832. local lCONTROL = {F = 0, B = 0, L = 0, R = 0, Q = 0, E = 0}

  1833. local SPEED = 0

  1834. local function FLY()

  1835. FLYING = true

  1836. local BG = Instance.new('BodyGyro')

  1837. local BV = Instance.new('BodyVelocity')

  1838. BG.P = 9e4

  1839. BG.Parent = T

  1840. BV.Parent = T

  1841. BG.maxTorque = Vector3.new(9e9, 9e9, 9e9)

  1842. BG.cframe = T.CFrame

  1843. BV.velocity = Vector3.new(0, 0, 0)

  1844. BV.maxForce = Vector3.new(9e9, 9e9, 9e9)

  1845. task.spawn(function()

  1846. repeat wait()

  1847. if not vfly and Players.LocalPlayer.Character:FindFirstChildOfClass('Humanoid') then

  1848. Players.LocalPlayer.Character:FindFirstChildOfClass('Humanoid').PlatformStand = true

  1849. end

  1850. if CONTROL.L + CONTROL.R ~= 0 or CONTROL.F + CONTROL.B ~= 0 or CONTROL.Q + CONTROL.E ~= 0 then

  1851. SPEED = 50

  1852. elseif not (CONTROL.L + CONTROL.R ~= 0 or CONTROL.F + CONTROL.B ~= 0 or CONTROL.Q + CONTROL.E ~= 0) and SPEED ~= 0 then

  1853. SPEED = 0

  1854. end

  1855. if (CONTROL.L + CONTROL.R) ~= 0 or (CONTROL.F + CONTROL.B) ~= 0 or (CONTROL.Q + CONTROL.E) ~= 0 then

  1856. BV.velocity = ((workspace.CurrentCamera.CoordinateFrame.lookVector * (CONTROL.F + CONTROL.B)) + ((workspace.CurrentCamera.CoordinateFrame * CFrame.new(CONTROL.L + CONTROL.R, (CONTROL.F + CONTROL.B + CONTROL.Q + CONTROL.E) * 0.2, 0).p) - workspace.CurrentCamera.CoordinateFrame.p)) * SPEED

  1857. lCONTROL = {F = CONTROL.F, B = CONTROL.B, L = CONTROL.L, R = CONTROL.R}

  1858. elseif (CONTROL.L + CONTROL.R) == 0 and (CONTROL.F + CONTROL.B) == 0 and (CONTROL.Q + CONTROL.E) == 0 and SPEED ~= 0 then

  1859. BV.velocity = ((workspace.CurrentCamera.CoordinateFrame.lookVector * (lCONTROL.F + lCONTROL.B)) + ((workspace.CurrentCamera.CoordinateFrame * CFrame.new(lCONTROL.L + lCONTROL.R, (lCONTROL.F + lCONTROL.B + CONTROL.Q + CONTROL.E) * 0.2, 0).p) - workspace.CurrentCamera.CoordinateFrame.p)) * SPEED

  1860. else

  1861. BV.velocity = Vector3.new(0, 0, 0)

  1862. end

  1863. BG.cframe = workspace.CurrentCamera.CoordinateFrame

  1864. until not FLYING

  1865. CONTROL = {F = 0, B = 0, L = 0, R = 0, Q = 0, E = 0}

  1866. lCONTROL = {F = 0, B = 0, L = 0, R = 0, Q = 0, E = 0}

  1867. SPEED = 0

  1868. BG:Destroy()

  1869. BV:Destroy()

  1870. if Players.LocalPlayer.Character:FindFirstChildOfClass('Humanoid') then

  1871. Players.LocalPlayer.Character:FindFirstChildOfClass('Humanoid').PlatformStand = false

  1872. end

  1873. end)

  1874. end

  1875. flyKeyDown = IYMouse.KeyDown:Connect(function(KEY)

  1876. if KEY:lower() == 'w' then

  1877. CONTROL.F = (vfly and vehicleflyspeed or iyflyspeed)

  1878. elseif KEY:lower() == 's' then

  1879. CONTROL.B = - (vfly and vehicleflyspeed or iyflyspeed)

  1880. elseif KEY:lower() == 'a' then

  1881. CONTROL.L = - (vfly and vehicleflyspeed or iyflyspeed)

  1882. elseif KEY:lower() == 'd' then

  1883. CONTROL.R = (vfly and vehicleflyspeed or iyflyspeed)

  1884. elseif QEfly and KEY:lower() == 'e' then

  1885. CONTROL.Q = (vfly and vehicleflyspeed or iyflyspeed)*2

  1886. elseif QEfly and KEY:lower() == 'q' then

  1887. CONTROL.E = -(vfly and vehicleflyspeed or iyflyspeed)*2

  1888. end

  1889. pcall(function() workspace.CurrentCamera.CameraType = Enum.CameraType.Track end)

  1890. end)

  1891. flyKeyUp = IYMouse.KeyUp:Connect(function(KEY)

  1892. if KEY:lower() == 'w' then

  1893. CONTROL.F = 0

  1894. elseif KEY:lower() == 's' then

  1895. CONTROL.B = 0

  1896. elseif KEY:lower() == 'a' then

  1897. CONTROL.L = 0

  1898. elseif KEY:lower() == 'd' then

  1899. CONTROL.R = 0

  1900. elseif KEY:lower() == 'e' then

  1901. CONTROL.Q = 0

  1902. elseif KEY:lower() == 'q' then

  1903. CONTROL.E = 0

  1904. end

  1905. end)

  1906. FLY()

  1907. end

  1908. function NOFLY()

  1909. FLYING = false

  1910. if flyKeyDown or flyKeyUp then flyKeyDown:Disconnect() flyKeyUp:Disconnect() end

  1911. if Players.LocalPlayer.Character:FindFirstChildOfClass('Humanoid') then

  1912. Players.LocalPlayer.Character:FindFirstChildOfClass('Humanoid').PlatformStand = false

  1913. end

  1914. pcall(function() workspace.CurrentCamera.CameraType = Enum.CameraType.Custom end)

  1915. end

  1916. --#endregion

  1917. --#region Better Graphics

  1918. function BetterG()

  1919. local light = game.Lighting

  1920. light:ClearAllChildren()

  1921. local color = Instance.new("ColorCorrectionEffect",light)

  1922. local bloom = Instance.new("BloomEffect",light)

  1923. local sun = Instance.new("SunRaysEffect",light)

  1924. local blur = Instance.new("BlurEffect",light)

  1925. local config = {ColorCorrection = true;Sun = true;Lighting = true;BloomEffect = true;}

  1926. color.Enabled = true

  1927. color.Contrast = 0.15

  1928. color.Brightness = 0.1

  1929. color.Saturation = 0.25

  1930. color.TintColor = Color3.fromRGB(255, 222, 211)

  1931. sun.Enabled = true

  1932. sun.Intensity = 0.2

  1933. sun.Spread = 1

  1934. bloom.Enabled = true

  1935. bloom.Intensity = 1

  1936. bloom.Size = 32

  1937. bloom.Threshold = 1

  1938. blur.Enabled = true

  1939. blur.Size = 3

  1940. light.Ambient = Color3.fromRGB(0, 0, 0)

  1941. light.ColorShift_Bottom = Color3.fromRGB(0, 0, 0)

  1942. light.ColorShift_Top = Color3.fromRGB(0, 0, 0)

  1943. light.ExposureCompensation = 0

  1944. light.GlobalShadows = true

  1945. light.OutdoorAmbient = Color3.fromRGB(112, 117, 128)

  1946. light.Outlines = false

  1947. end

  1948. --#endregion

  1949. --#region Auto buy

  1950. function CheckForItem(ItemType)

  1951. for i,v in pairs(game:GetService("Workspace").Stores:GetChildren()) do

  1952. if v.Name == "ShopItems" then

  1953. for i,v in pairs(v:GetChildren()) do

  1954. if v:FindFirstChild("Owner") and v.Owner.Value == nil then

  1955. if v:FindFirstChild("BoxItemName") and tostring(v.BoxItemName.Value) == ItemType then

  1956. return true

  1957. end

  1958. end

  1959. end

  1960. end

  1961. end

  1962. return false

  1963. end

  1964. function GetPrice(Item,Amount)

  1965. local Price = 0

  1966. for i,v in next, game:GetService("ReplicatedStorage").ClientItemInfo:GetDescendants() do

  1967. if v.Name == Item and v:FindFirstChild("Price") then

  1968. Price = Price + v.Price.Value * Amount

  1969. end

  1970. end

  1971. return Price

  1972. end

  1973. function GrabShopItems()

  1974. local ItemList = {}

  1975. for i,v in next,game:GetService("Workspace").Stores:GetChildren() do

  1976. if v.Name == "ShopItems" then

  1977. for i,v in next,v:GetChildren() do

  1978. if v:FindFirstChild("Type") and v.Type.Value ~= "Blueprint" and v:FindFirstChild("BoxItemName") then

  1979. if not table.find(ItemList,v.BoxItemName.Value.." - $"..GetPrice(v.BoxItemName.Value,1)) then

  1980. table.insert(ItemList,v.BoxItemName.Value.." - $"..GetPrice(v.BoxItemName.Value,1))

  1981. task.wait(0.01)

  1982. end

  1983. end

  1984. end

  1985. end

  1986. table.sort(ItemList)

  1987. end

  1988. return ItemList

  1989. end

  1990. function UpdateNames()

  1991. for i,v in next, game:GetService("Workspace").Stores:GetChildren() do

  1992. if v.Name == "ShopItems" then

  1993. v.ChildAdded:Connect(function(v)

  1994. v.Name = v:WaitForChild("BoxItemName").Value

  1995. end)

  1996. for i,v in next, v:GetChildren() do

  1997. if v:FindFirstChild("Owner") and v.Owner.Value == nil then

  1998. if v:FindFirstChild("BoxItemName") then

  1999. v.Name = v.BoxItemName.Value

  2000. end

  2001. end

  2002. end

  2003. end

  2004. end

  2005. end

  2006. UpdateNames()

  2007. function ItemPath(Item)

  2008. for i,v in next, game:GetService("Workspace").Stores:GetChildren() do

  2009. if v.Name == "ShopItems" then

  2010. for i,v in next, v:GetChildren() do

  2011. if v:FindFirstChild("Owner") and v.Owner.Value == nil then

  2012. if v:FindFirstChild("BoxItemName") and tostring(v.BoxItemName.Value) == Item then

  2013. return v.Parent

  2014. end

  2015. end

  2016. end

  2017. end

  2018. end

  2019. end

  2020. function GetCounter(Item)

  2021. ClosestCounter = nil

  2022. for i,v in next, game:GetService("Workspace").Stores:GetChildren() do

  2023. if v.Name:lower() ~= "shopitems" then

  2024. for i,v in next, v:GetChildren() do

  2025. if v.Name:lower() == "counter" then

  2026. if (Item.CFrame.p - v.CFrame.p).Magnitude <= 200 then

  2027. ClosestCounter = v

  2028. end

  2029. end

  2030. end

  2031. end

  2032. end

  2033. return ClosestCounter

  2034. end

  2035. function Pay(ID)

  2036. spawn(function()

  2037. game:GetService("ReplicatedStorage").NPCDialog.PlayerChatted:InvokeServer({["ID"] = ID,["Character"] = "name",["Name"] = "name",["Dialog"] = 'Dialog'}, "ConfirmPurchase");

  2038. end)

  2039. end

  2040. local ItemBought

  2041. function AutoBuy(Item,Amount,op,bpop)

  2042. buytime = tick()

  2043. if Item == nil then notifications:message{Title = "Butter",Description = "No item selected",Icon = 6023426926} return end

  2044. if game.Players.LocalPlayer.leaderstats.Money.Value < GetPrice(Item,Amount) then return notifications:message{Title = "Butter",Description = "No money",Icon = 6023426926} end

  2045. AbortAutoBuy = false

  2046. local OldPos = game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame

  2047. local Path = ItemPath(Item)

  2048. for i = 1,Amount do

  2049. if AbortAutoBuy then break end

  2050. local Item = Path:WaitForChild(Item)

  2051. local Counter = GetCounter(Item.Main)

  2052. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = Item.Main.CFrame + Vector3.new(5,0,5)

  2053. repeat game.ReplicatedStorage.Interaction.ClientIsDragging:FireServer(Item) task.wait() until Item.Owner.Value ~= nil

  2054. if Item.Owner.Value ~= game.Players.LocalPlayer then break end

  2055. repeat game.ReplicatedStorage.Interaction.ClientIsDragging:FireServer(Item) task.wait() until isnetworkowner(Item.Main)

  2056. game.ReplicatedStorage.Interaction.ClientIsDragging:FireServer(Item)

  2057. pcall(function()

  2058. Item.Main.CFrame = Counter.CFrame + Vector3.new(0,Item.Main.Size.Y,0.5,0)

  2059. end)

  2060. task.wait(GetPing())

  2061. pcall(function()

  2062. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = Counter.CFrame + Vector3.new(5,0,5)

  2063. end)

  2064. task.wait(GetPing())

  2065. repeat

  2066. if AbortAutoBuy then break end

  2067. game.ReplicatedStorage.Interaction.ClientIsDragging:FireServer(Item)

  2068. Pay(ShopIDS[Counter.Parent.Name])

  2069. task.wait()

  2070. until Item.Parent ~= "ShopItems"

  2071. pcall(function()

  2072. repeat game.ReplicatedStorage.Interaction.ClientIsDragging:FireServer(Item) task.wait() until isnetworkowner(Item.Main)

  2073. game.ReplicatedStorage.Interaction.ClientIsDragging:FireServer(Item)

  2074. Item.Main.CFrame = OldPos

  2075. task.wait(GetPing())

  2076. end)

  2077. if op then

  2078. game:GetService("ReplicatedStorage").Interaction.ClientInteracted:FireServer(Item,"Open box")

  2079. end

  2080. if not bpop then

  2081. ResizeBar(i,Amount)

  2082. end

  2083. task.wait()

  2084. end

  2085. if ItemBought then ItemBought:Disconnect() end

  2086. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = OldPos + Vector3.new(5,1,0)

  2087. if AbortAutoBuy then

  2088. notifications:message{Title = "Butter",Description = "Aborted",Icon = 6023426926}

  2089. else

  2090. --print("done")

  2091. end

  2092. if not bpop then

  2093. notifications:message{Title = "Butter",Description = "Done in ".. string.format('%.1fs', tick() - buytime),Icon = 6023426926}

  2094. end

  2095. end

  2096. --#endregion

  2097. --#region Slot

  2098. function SellSoldSign()

  2099. for i,v in next, game:GetService("Workspace").PlayerModels:GetChildren() do

  2100. if v:FindFirstChild("Owner") and v.Owner.Value == game.Players.LocalPlayer then

  2101. if v:FindFirstChild("ItemName") and v.ItemName.Value == "PropertySoldSign" then

  2102. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(v.Main.CFrame.p) + Vector3.new(0,0,2)

  2103. game:GetService("ReplicatedStorage").Interaction.ClientInteracted:FireServer(v,"Take down sold sign")

  2104. for i = 1,30 do

  2105. game:GetService("ReplicatedStorage").Interaction.ClientIsDragging:FireServer(v)

  2106. v.Main.CFrame = CFrame.new(314.54, -0.5, 86.823)

  2107. task.wait()

  2108. end

  2109. end

  2110. end

  2111. end

  2112. end

  2113. function FreeLand()

  2114. for i,v in next, game:GetService("Workspace").Properties:GetChildren() do

  2115. if v:FindFirstChild("Owner") and v.Owner.Value == nil then

  2116. game:GetService("ReplicatedStorage").PropertyPurchasing.ClientPurchasedProperty:FireServer(v,v.OriginSquare.Position)

  2117. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = v.OriginSquare.CFrame + Vector3.new(0,2,0)

  2118. break

  2119. end

  2120. end

  2121. end

  2122. function MaxLand()

  2123. for s,d in pairs(workspace.Properties:GetChildren()) do

  2124. if d:FindFirstChild("Owner") and d:FindFirstChild("OriginSquare") and d.Owner.Value == game.Players.LocalPlayer then

  2125. local PlotPos = d.OriginSquare.Position

  2126. game:GetService("ReplicatedStorage").PropertyPurchasing.ClientExpandedProperty:FireServer(d,CFrame.new(PlotPos.X + 40, PlotPos.Y, PlotPos.Z))

  2127. game:GetService("ReplicatedStorage").PropertyPurchasing.ClientExpandedProperty:FireServer(d,CFrame.new(PlotPos.X - 40, PlotPos.Y, PlotPos.Z))

  2128. game:GetService("ReplicatedStorage").PropertyPurchasing.ClientExpandedProperty:FireServer(d,CFrame.new(PlotPos.X , PlotPos.Y, PlotPos.Z + 40))

  2129. game:GetService("ReplicatedStorage").PropertyPurchasing.ClientExpandedProperty:FireServer(d,CFrame.new(PlotPos.X , PlotPos.Y, PlotPos.Z - 40))

  2130. game:GetService("ReplicatedStorage").PropertyPurchasing.ClientExpandedProperty:FireServer(d,CFrame.new(PlotPos.X + 40 , PlotPos.Y, PlotPos.Z + 40))

  2131. game:GetService("ReplicatedStorage").PropertyPurchasing.ClientExpandedProperty:FireServer(d,CFrame.new(PlotPos.X + 40 , PlotPos.Y, PlotPos.Z - 40))

  2132. game:GetService("ReplicatedStorage").PropertyPurchasing.ClientExpandedProperty:FireServer(d,CFrame.new(PlotPos.X - 40 , PlotPos.Y, PlotPos.Z + 40))

  2133. game:GetService("ReplicatedStorage").PropertyPurchasing.ClientExpandedProperty:FireServer(d,CFrame.new(PlotPos.X - 40 , PlotPos.Y, PlotPos.Z - 40))

  2134. game:GetService("ReplicatedStorage").PropertyPurchasing.ClientExpandedProperty:FireServer(d,CFrame.new(PlotPos.X + 80 , PlotPos.Y, PlotPos.Z))

  2135. game:GetService("ReplicatedStorage").PropertyPurchasing.ClientExpandedProperty:FireServer(d,CFrame.new(PlotPos.X - 80 , PlotPos.Y, PlotPos.Z))

  2136. game:GetService("ReplicatedStorage").PropertyPurchasing.ClientExpandedProperty:FireServer(d,CFrame.new(PlotPos.X , PlotPos.Y, PlotPos.Z + 80))

  2137. game:GetService("ReplicatedStorage").PropertyPurchasing.ClientExpandedProperty:FireServer(d,CFrame.new(PlotPos.X , PlotPos.Y, PlotPos.Z - 80))

  2138. game:GetService("ReplicatedStorage").PropertyPurchasing.ClientExpandedProperty:FireServer(d,CFrame.new(PlotPos.X + 80 , PlotPos.Y, PlotPos.Z + 80))

  2139. game:GetService("ReplicatedStorage").PropertyPurchasing.ClientExpandedProperty:FireServer(d,CFrame.new(PlotPos.X + 80 , PlotPos.Y, PlotPos.Z - 80))

  2140. game:GetService("ReplicatedStorage").PropertyPurchasing.ClientExpandedProperty:FireServer(d,CFrame.new(PlotPos.X - 80 , PlotPos.Y, PlotPos.Z + 80))

  2141. game:GetService("ReplicatedStorage").PropertyPurchasing.ClientExpandedProperty:FireServer(d,CFrame.new(PlotPos.X - 80 , PlotPos.Y, PlotPos.Z - 80))

  2142. game:GetService("ReplicatedStorage").PropertyPurchasing.ClientExpandedProperty:FireServer(d,CFrame.new(PlotPos.X + 40 , PlotPos.Y, PlotPos.Z + 80))

  2143. game:GetService("ReplicatedStorage").PropertyPurchasing.ClientExpandedProperty:FireServer(d,CFrame.new(PlotPos.X - 40 , PlotPos.Y, PlotPos.Z + 80))

  2144. game:GetService("ReplicatedStorage").PropertyPurchasing.ClientExpandedProperty:FireServer(d,CFrame.new(PlotPos.X + 80 , PlotPos.Y, PlotPos.Z + 40))

  2145. game:GetService("ReplicatedStorage").PropertyPurchasing.ClientExpandedProperty:FireServer(d,CFrame.new(PlotPos.X + 80 , PlotPos.Y, PlotPos.Z - 40))

  2146. game:GetService("ReplicatedStorage").PropertyPurchasing.ClientExpandedProperty:FireServer(d,CFrame.new(PlotPos.X - 80 , PlotPos.Y, PlotPos.Z + 40))

  2147. game:GetService("ReplicatedStorage").PropertyPurchasing.ClientExpandedProperty:FireServer(d,CFrame.new(PlotPos.X - 80 , PlotPos.Y, PlotPos.Z - 40))

  2148. game:GetService("ReplicatedStorage").PropertyPurchasing.ClientExpandedProperty:FireServer(d,CFrame.new(PlotPos.X + 40 , PlotPos.Y, PlotPos.Z - 80))

  2149. game:GetService("ReplicatedStorage").PropertyPurchasing.ClientExpandedProperty:FireServer(d,CFrame.new(PlotPos.X - 40 , PlotPos.Y, PlotPos.Z - 80))

  2150. end

  2151. end

  2152. end

  2153. function VehicleSpeed(Val)

  2154. for i,v in next, game:GetService("Workspace").PlayerModels:GetChildren() do

  2155. if v:FindFirstChild("Owner") and v.Owner.Value == game.Players.LocalPlayer then

  2156. if v:FindFirstChild("Type") and v.Type.Value == "Vehicle" then

  2157. if v:FindFirstChild("Configuration") then

  2158. v.Configuration.MaxSpeed.Value = Val

  2159. end

  2160. end

  2161. end

  2162. end

  2163. end

  2164. function SitInAnyVehicle()

  2165. game:GetService("Players").LocalPlayer.PlayerGui.Scripts.SitPermissions.Disabled = false

  2166. end

  2167. --#endregion

  2168. --#region world

  2169. function WalkOnWater(Val)

  2170. for i,v in next, game:GetService("Workspace").Water:GetChildren() do

  2171. if v.Name == "Water" then

  2172. v.CanCollide = Val

  2173. end

  2174. end

  2175. end

  2176. function BridgeDown(Bridge)

  2177. for i,v in next, game:GetService("Workspace").Bridge.VerticalLiftBridge.Lift:GetChildren() do

  2178. if not Bridge then

  2179. v.CFrame = v.CFrame + Vector3.new(0,26,0)

  2180. else

  2181. v.CFrame = v.CFrame - Vector3.new(0,26,0)

  2182. end

  2183. end

  2184. end

  2185. function RemoveWater(Val)

  2186. for i,v in next, game:GetService("Workspace").Water:GetChildren() do

  2187. if v.Name == "Water" then

  2188. if not Val then

  2189. v.Transparency = 0

  2190. else

  2191. v.Transparency = 1

  2192. end

  2193. end

  2194. end

  2195. end

  2196. function ToggleShopDoors()

  2197. for i,v in next, game:GetService("Workspace").Stores:GetChildren() do

  2198. if v.Name ~= "ShopItems" then

  2199. for i,v in next, v:GetChildren() do

  2200. if v.Name == "RDoor" or v.Name == "LDoor" then

  2201. game:GetService("ReplicatedStorage").Interaction.RemoteProxy:FireServer(v.ButtonRemote_Toggle)

  2202. end

  2203. end

  2204. end

  2205. end

  2206. end

  2207. function GetPlayersBase(Plr)

  2208. for i,v in next, game:GetService("Workspace").Properties:GetChildren() do

  2209. if v:FindFirstChild("Owner") and tostring(v.Owner.Value) == Plr then

  2210. return v

  2211. end

  2212. end

  2213. return false

  2214. end

  2215. --#endregion

  2216. --#region Player Stuff

  2217. function JumpPower(Val)

  2218. game.Players.LocalPlayer.Character.Humanoid.JumpPower = Val

  2219. end

  2220. getgenv().Speed = 16

  2221. function Walkspeed()

  2222. game.Players.LocalPlayer.Character.Humanoid:GetPropertyChangedSignal("WalkSpeed"):Connect(function()

  2223. game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = getgenv().Speed

  2224. end)

  2225. game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = getgenv().Speed

  2226. end

  2227. function NoClip(NoClipVal)

  2228. if not NoClipVal then Clipping:Disconnect() return end

  2229. Clipping = game:GetService("RunService").Stepped:connect(function()

  2230. for i,v in next, game.Players.LocalPlayer.Character:GetChildren() do

  2231. if v:IsA("Part") or v:IsA("BasePart") then

  2232. v.CanCollide = false

  2233. end

  2234. end

  2235. end)

  2236. end

  2237. function InfiniteJump(Val)

  2238. if not Val then IJ:Disconnect() return end

  2239. IJ = game:GetService("UserInputService").JumpRequest:Connect(function()

  2240. game.Players.LocalPlayer.Character:FindFirstChildOfClass"Humanoid":ChangeState("Jumping")

  2241. end)

  2242. end

  2243. local Flyingkey

  2244. local FlyingEnabled = false

  2245. local maxspeed = 150

  2246. function BetterFly()

  2247. repeat wait() until game.Players.LocalPlayer and game.Players.LocalPlayer.Character and game.Players.LocalPlayer.Character:findFirstChild("Head") and game.Players.LocalPlayer.Character:findFirstChild("Humanoid")

  2248. local mouse = game.Players.LocalPlayer:GetMouse()

  2249. repeat wait() until mouse

  2250. local plr = game.Players.LocalPlayer

  2251. local torso = plr.Character.Head

  2252. local flying = false

  2253. local deb = true

  2254. local ctrl = {f = 0, b = 0, l = 0, r = 0}

  2255. local lastctrl = {f = 0, b = 0, l = 0, r = 0}

  2256. local speed = 5000

  2257. function Fly()

  2258. local bg = Instance.new("BodyGyro", torso)

  2259. bg.P = 9e4

  2260. bg.maxTorque = Vector3.new(9e9, 9e9, 9e9)

  2261. bg.cframe = torso.CFrame

  2262. local bv = Instance.new("BodyVelocity", torso)

  2263. bv.velocity = Vector3.new(0,0.1,0)

  2264. bv.maxForce = Vector3.new(9e9, 9e9, 9e9)

  2265. repeat wait()

  2266. plr.Character.Humanoid.PlatformStand = true

  2267. if ctrl.l + ctrl.r ~= 0 or ctrl.f + ctrl.b ~= 0 then

  2268. speed = maxspeed

  2269. elseif not (ctrl.l + ctrl.r ~= 0 or ctrl.f + ctrl.b ~= 0) and speed ~= 0 then

  2270. speed = 0

  2271. end

  2272. if (ctrl.l + ctrl.r) ~= 0 or (ctrl.f + ctrl.b) ~= 0 then

  2273. bv.velocity = ((game.Workspace.CurrentCamera.CoordinateFrame.lookVector * (ctrl.f+ctrl.b)) + ((game.Workspace.CurrentCamera.CoordinateFrame * CFrame.new(ctrl.l+ctrl.r,(ctrl.f+ctrl.b)*.2,0).p) - game.Workspace.CurrentCamera.CoordinateFrame.p))*speed

  2274. lastctrl = {f = ctrl.f, b = ctrl.b, l = ctrl.l, r = ctrl.r}

  2275. elseif (ctrl.l + ctrl.r) == 0 and (ctrl.f + ctrl.b) == 0 and speed ~= 0 then

  2276. bv.velocity = ((game.Workspace.CurrentCamera.CoordinateFrame.lookVector * (lastctrl.f+lastctrl.b)) + ((game.Workspace.CurrentCamera.CoordinateFrame * CFrame.new(lastctrl.l+lastctrl.r,(lastctrl.f+lastctrl.b)*0.2,0).p) - game.Workspace.CurrentCamera.CoordinateFrame.p))*speed

  2277. else

  2278. bv.velocity = Vector3.new(0,0,0)

  2279. end

  2280. bg.cframe = game.Workspace.CurrentCamera.CoordinateFrame * CFrame.Angles(-math.rad((ctrl.f+ctrl.b)*speed/maxspeed),0,0)

  2281. until not flying

  2282. ctrl = {f = 0, b = 0, l = 0, r = 0}

  2283. lastctrl = {f = 0, b = 0, l = 0, r = 0}

  2284. speed = 0

  2285. bg:Destroy()

  2286. bv:Destroy()

  2287. plr.Character.Humanoid.PlatformStand = false

  2288. end

  2289. mouse.KeyDown:connect(function(key)

  2290. if key:lower() == Flyingkey and FlyingEnabled == true then

  2291. if flying then flying = false

  2292. else

  2293. flying = true

  2294. Fly()

  2295. end

  2296. elseif key:lower() == "w" then

  2297. ctrl.f = 1

  2298. elseif key:lower() == "s" then

  2299. ctrl.b = -1

  2300. elseif key:lower() == "a" then

  2301. ctrl.l = -1

  2302. elseif key:lower() == "d" then

  2303. ctrl.r = 1

  2304. end

  2305. end)

  2306. mouse.KeyUp:connect(function(key)

  2307. if key:lower() == "w" then

  2308. ctrl.f = 0

  2309. elseif key:lower() == "s" then

  2310. ctrl.b = 0

  2311. elseif key:lower() == "a" then

  2312. ctrl.l = 0

  2313. elseif key:lower() == "d" then

  2314. ctrl.r = 0

  2315. end

  2316. end)

  2317. Fly()

  2318. end

  2319. game.Players.LocalPlayer.CharacterAdded:Connect(BetterFly)

  2320. BetterFly()

  2321. function AntiAFK(Val)

  2322. if not Val then AFKVal:Disconnect() return end

  2323. AFKVal = game:GetService("Players").LocalPlayer.Idled:connect(function()

  2324. game:GetService("VirtualInputManager"):SendKeyEvent(true, "W", false, game)

  2325. wait()

  2326. game:GetService("VirtualInputManager"):SendKeyEvent(false, "W", false, game)

  2327. end)

  2328. end

  2329. function Light(Val)

  2330. if Val == false then game.Players.LocalPlayer.Character.Head.PointLight:Destroy() return end

  2331. local PL = Instance.new("PointLight",game.Players.LocalPlayer.Character:FindFirstChild("Head"))

  2332. PL.Range = 100

  2333. PL.Brightness = 1

  2334. PL.Shadows = false

  2335. end

  2336. function BTools()

  2337. local Pllayyrs = game:GetService("Players").LocalPlayer

  2338. local deletetool = Instance.new("Tool", Pllayyrs.Backpack)

  2339. local undotool = Instance.new("Tool", Pllayyrs.Backpack)

  2340. if editedparts == nil then

  2341. editedparts = {}

  2342. parentfix = {}

  2343. positionfix = {}

  2344. end

  2345. deletetool.Name = "Delete"

  2346. undotool.Name = "Undo"

  2347. undotool.CanBeDropped = true

  2348. deletetool.CanBeDropped = true

  2349. undotool.RequiresHandle = false

  2350. deletetool.RequiresHandle = false

  2351. deletetool.Activated:Connect(function()

  2352. table.insert(editedparts, mouse.Target)

  2353. table.insert(parentfix, mouse.Target.Parent)

  2354. table.insert(positionfix, mouse.Target.CFrame)

  2355. mouse.Target.Parent = nil

  2356. end)

  2357. undotool.Activated:Connect(function()

  2358. editedparts[#editedparts].Parent = parentfix[#parentfix]

  2359. editedparts[#editedparts].CFrame = positionfix[#positionfix]

  2360. table.remove(positionfix, #positionfix)

  2361. table.remove(editedparts, #editedparts)

  2362. table.remove(parentfix, #parentfix)

  2363. end)

  2364. end

  2365. --#endregion

  2366. --#region Player Teleport

  2367. local AllPlayers = {"Select Player"}

  2368. for i,v in next,game.Players:GetPlayers() do

  2369. if not table.find(AllPlayers,v.Name) then

  2370. table.insert(AllPlayers,v.Name)

  2371. end

  2372. end

  2373. function TeleportToBase(Plr)

  2374. for i,v in next, game:GetService("Workspace").Properties:GetChildren() do

  2375. if v:FindFirstChild("Owner") and tostring(v.Owner.Value) == Plr then

  2376. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = v.OriginSquare.CFrame + Vector3.new(0,2,0)

  2377. break

  2378. end

  2379. end

  2380. end

  2381. local function carTP(CFRAME) -- need to be in car

  2382. player = game.Players.LocalPlayer

  2383. humanoid = player.Character.Humanoid

  2384. if humanoid.Seated then

  2385. local CurrentSeat = player.Character.Humanoid.SeatPart

  2386. if CurrentSeat and CurrentSeat.Parent.Type.Value == "Vehicle" then

  2387. CurrentSeat.CFrame = CFRAME

  2388. CurrentSeat.Parent.RightSteer.Wheel.CFrame = CFRAME

  2389. CurrentSeat.Parent.LeftSteer.Wheel.CFrame = CFRAME

  2390. CurrentSeat.Parent.RightPower.Wheel.CFrame = CFRAME

  2391. CurrentSeat.Parent.LeftPower.Wheel.CFrame = CFRAME

  2392. end

  2393. end

  2394. end

  2395. function TeleportToPlayer(Plr)

  2396. for i,v in next, game.Players:GetPlayers() do

  2397. if tostring(v.Name) == Plr then

  2398. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(v.Character.HumanoidRootPart.CFrame.p)

  2399. --print("Teleported")

  2400. break

  2401. end

  2402. end

  2403. end

  2404. --#endregion

  2405. --#region lasso

  2406. local function isValidModel(v)

  2407. local modelName = v.Name:lower()

  2408. return v:FindFirstChild("Main") and not (string.find(modelName, "saw") or string.find(modelName, "utility") or string.find(modelName, "trailer") or string.find(modelName, "pickup") or string.find(modelName, "PropertySoldSign"))

  2409. end

  2410. local ScreenGui = Instance.new("ScreenGui")

  2411. local Frame = Instance.new("Frame")

  2412. ScreenGui.Parent = game.CoreGui

  2413. ScreenGui.ZIndexBehavior = Enum.ZIndexBehavior.Sibling

  2414. Frame.Parent = ScreenGui

  2415. Frame.BackgroundColor3 = Color3.new(0.098, 0.459, 1)

  2416. Frame.BackgroundTransparency = 0.8

  2417. Frame.BorderColor3 = Color3.new(0.09, 0.137, 0.776)

  2418. Frame.BorderSizePixel = 2

  2419. Frame.Position = UDim2.new(0, 0, 0, 0)

  2420. Frame.Size = UDim2.new(0, 0, 0, 0)

  2421. local Run = game:GetService("RunService")

  2422. local Player = game.Players.LocalPlayer

  2423. local UserInputService = game:GetService("UserInputService")

  2424. local Camera = game.Workspace.CurrentCamera

  2425. local Selected = {}

  2426. local RunConnection = UserInputService.InputBegan:Connect(function(input)

  2427. if not getgenv().isonlooze then

  2428. return

  2429. end

  2430. if input.UserInputType == Enum.UserInputType.MouseButton1 then

  2431. Frame.Visible = true

  2432. Frame.Position = UDim2.new(0, Mouse.X, 0, Mouse.Y)

  2433. while UserInputService:IsMouseButtonPressed(Enum.UserInputType.MouseButton1) do

  2434. Run.RenderStepped:Wait()

  2435. Frame.Size = UDim2.new(0, Mouse.X, 0, Mouse.Y) - Frame.Position

  2436. for _, v in pairs(game.Workspace.PlayerModels:GetChildren()) do

  2437. if isValidModel(v) then

  2438. local ScreenPos, Visible = Camera:WorldToScreenPoint(v.Main.CFrame.p)

  2439. if Visible then

  2440. if is_in_frame(ScreenPos, Frame) then

  2441. if v.Main:FindFirstChild("Selection") then

  2442. continue

  2443. end

  2444. local SelectionBox = Instance.new("SelectionBox", v.Main)

  2445. SelectionBox.Name = "Selection"

  2446. SelectionBox.Adornee = SelectionBox.Parent

  2447. SelectionBox.SurfaceTransparency = 0.5

  2448. SelectionBox.LineThickness = 0.09

  2449. SelectionBox.SurfaceColor3 = Color3.fromRGB(0, 0, 0)

  2450. SelectionBox.Color3 = Color3.fromRGB(0, 172, 240)

  2451. end

  2452. end

  2453. end

  2454. if v:FindFirstChild("WoodSection") then

  2455. local ScreenPos, Visible = Camera:WorldToScreenPoint(v.WoodSection.CFrame.p)

  2456. if Visible then

  2457. if is_in_frame(ScreenPos, Frame) then

  2458. if v.WoodSection:FindFirstChild("Selection") then

  2459. continue

  2460. end

  2461. local SelectionBox = Instance.new("SelectionBox", v.WoodSection)

  2462. SelectionBox.Name = "Selection"

  2463. SelectionBox.Adornee = SelectionBox.Parent

  2464. SelectionBox.SurfaceTransparency = 0.5

  2465. SelectionBox.LineThickness = 0.09

  2466. SelectionBox.SurfaceColor3 = Color3.fromRGB(0, 0, 0)

  2467. SelectionBox.Color3 = Color3.fromRGB(0, 172, 240)

  2468. end

  2469. end

  2470. end

  2471. if not getgenv().GetBPs then

  2472. else

  2473. if v:FindFirstChild("BuildDependentWood") then

  2474. local ScreenPos, Visible = Camera:WorldToScreenPoint(v.BuildDependentWood.CFrame.p)

  2475. if Visible then

  2476. if is_in_frame(ScreenPos, Frame) then

  2477. if v.BuildDependentWood:FindFirstChild("Selection") then

  2478. continue

  2479. end

  2480. local SelectionBox = Instance.new("SelectionBox", v.BuildDependentWood)

  2481. SelectionBox.Name = "Selection"

  2482. SelectionBox.Adornee = SelectionBox.Parent

  2483. SelectionBox.SurfaceTransparency = 0.5

  2484. SelectionBox.LineThickness = 0.09

  2485. SelectionBox.SurfaceColor3 = Color3.fromRGB(0, 0, 0)

  2486. SelectionBox.Color3 = Color3.fromRGB(0, 172, 240)

  2487. end

  2488. end

  2489. end

  2490. end

  2491. end

  2492. end

  2493. Frame.Size = UDim2.new(0, 1, 0, 1)

  2494. Frame.Visible = false

  2495. end

  2496. end)

  2497. function lassoTpcheck()

  2498. function is_in_frame(screenpos, frame)

  2499. local xPos = frame.AbsolutePosition.X

  2500. local yPos = frame.AbsolutePosition.Y

  2501. local xSize = frame.AbsoluteSize.X

  2502. local ySize = frame.AbsoluteSize.Y

  2503. local check1 = screenpos.X >= xPos and screenpos.X <= xPos + xSize

  2504. local check2 = screenpos.X <= xPos and screenpos.X >= xPos + xSize

  2505. local check3 = screenpos.Y >= yPos and screenpos.Y <= yPos + ySize

  2506. local check4 = screenpos.Y <= yPos and screenpos.Y >= yPos + ySize

  2507. local finale = (check1 and check3) or (check2 and check3) or (check1 and check4) or (check2 and check4)

  2508. return finale

  2509. end

  2510. end

  2511. --#endregion

  2512. --#region Logs

  2513. function BringAllLogs()

  2514. OldPos = game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame

  2515. for i,v in next, game:GetService("Workspace").LogModels:GetChildren() do

  2516. if v:FindFirstChild("Owner") and v.Owner.Value == game.Players.LocalPlayer then

  2517. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(v:FindFirstChild("WoodSection").CFrame.p)

  2518. if not v.PrimaryPart then

  2519. v.PrimaryPart = v:FindFirstChild("WoodSection")

  2520. end

  2521. for i = 1,50 do

  2522. game.ReplicatedStorage.Interaction.ClientIsDragging:FireServer(v)

  2523. v:SetPrimaryPartCFrame(OldPos)

  2524. task.wait()

  2525. end

  2526. end

  2527. task.wait()

  2528. end

  2529. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = OldPos

  2530. end

  2531. function SellAllLogs()

  2532. OldPos = game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame

  2533. for i,v in next, game:GetService("Workspace").LogModels:GetChildren() do

  2534. if v:FindFirstChild("Owner") and v.Owner.Value == game.Players.LocalPlayer then

  2535. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(v:FindFirstChild("WoodSection").CFrame.p)

  2536. task.wait(0.3)

  2537. if not v.PrimaryPart then

  2538. v.PrimaryPart = v:FindFirstChild("WoodSection")

  2539. end

  2540. spawn(function()

  2541. for i = 1,50 do

  2542. game.ReplicatedStorage.Interaction.ClientIsDragging:FireServer(v)

  2543. v:SetPrimaryPartCFrame(CFrame.new(314, -0.5, 86.822))

  2544. task.wait()

  2545. end

  2546. end)

  2547. end

  2548. task.wait()

  2549. end

  2550. task.wait()

  2551. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = OldPos

  2552. end

  2553. --#endregion

  2554. --#region SlotV2

  2555. --#region Fast load

  2556. local plr = game:service'Players'.LocalPlayer

  2557. local function getPlots()

  2558. local Properties = {}

  2559. for _, v in next, workspace.Properties:GetChildren() do

  2560. local Owner = v:FindFirstChild("Owner")

  2561. if Owner and Owner.Value == nil then

  2562. table.insert(Properties, v)

  2563. end

  2564. end

  2565. return Properties[#Properties]

  2566. end

  2567. local propClient = plr.PlayerGui.PropertyPurchasingGUI.PropertyPurchasingClient

  2568. local propEnvironment = getsenv(propClient)

  2569. local oldPurchase = propEnvironment.enterPurchaseMode

  2570. getsenv(propClient).enterPurchaseMode = function(...)

  2571. if not skipLoading then

  2572. return oldPurchase(...)

  2573. end

  2574. setupvalue(propEnvironment.rotate, 3, 0)

  2575. setupvalue(oldPurchase, 10, getPlots())

  2576. return

  2577. end

  2578. function LoadSlot(slot)

  2579. if not game:GetService("ReplicatedStorage").LoadSaveRequests.ClientMayLoad:InvokeServer(game:GetService("Players").LocalPlayer) then

  2580. --print("Load Is On cooldown Please Wait")

  2581. repeat task.wait() until game:GetService("ReplicatedStorage").LoadSaveRequests.ClientMayLoad:InvokeServer(game:GetService("Players").LocalPlayer)

  2582. end

  2583. local skipLoading = skil.skipLoading

  2584. game:GetService("ReplicatedStorage").LoadSaveRequests.RequestLoad:InvokeServer(slot,game.Players.LocalPlayer)

  2585. if game:GetService("Players").LocalPlayer.CurrentSaveSlot.Value == slot then

  2586. --print("Loaded Slot "..slot)

  2587. end

  2588. end

  2589. --#endregion

  2590. --#region Land art

  2591. local LandArtClick

  2592. local LandArtMove

  2593. local LP = game:GetService"Players".LocalPlayer

  2594. local Mouse = LP:GetMouse()

  2595. function Create(ToMake, Parent, Props)

  2596. Props = Props or {}

  2597. local Created = Instance.new(ToMake, Parent)

  2598. for i, v in next, Props do

  2599. Created[i] = v

  2600. end

  2601. return Created

  2602. end

  2603. function GetPlot(Value)

  2604. local Value = Value or LP

  2605. for i, v in next, Workspace.Properties:GetChildren() do

  2606. if v:FindFirstChild"Owner" and v.Owner.Value == Value then

  2607. return v

  2608. end

  2609. end

  2610. return false

  2611. end

  2612. function LandArt(Value)

  2613. if Value then if game:GetService("Players").LocalPlayer.OwnsProperty.value ~= true then return notifications:message{Title = "Butter", Description = "You need land to use this!", Icon = 6023426926} end end

  2614. if not Value then

  2615. LandArtClick:Disconnect()

  2616. LandArtMove:Disconnect()

  2617. Workspace:FindFirstChild"PlotFolder":Destroy()

  2618. return

  2619. end

  2620. local LandVecs = {Vector3.new(40, 0, 0), Vector3.new(-40, 0, 0), Vector3.new(0, 0, 40), Vector3.new(0, 0, -40), Vector3.new(40, 0, 40), Vector3.new(40, 0, -40), Vector3.new(-40, 0, 40), Vector3.new(-40, 0, -40), Vector3.new(80, 0, 0), Vector3.new(-80, 0, 0), Vector3.new(0, 0, 80), Vector3.new(0, 0, -80), Vector3.new(80, 0, 80), Vector3.new(80, 0, -80), Vector3.new(-80, 0, 80), Vector3.new(-80, 0, -80), Vector3.new(40, 0, 80), Vector3.new(-40, 0, 80),Vector3.new(80, 0, 40), Vector3.new(80, 0, -40), Vector3.new(-80, 0, 40), Vector3.new(-80, 0, -40), Vector3.new(40, 0, -80), Vector3.new(-40, 0, -80)}

  2621. local Folder, Selection = Create("Folder", Workspace, {Name = "PlotFolder"}), Create("SelectionBox", Workspace:WaitForChild("PlotFolder", 1), {Name = "Selection"})

  2622. for i, v in next, LandVecs do

  2623. Create("Part", Folder, {Name = "LandPreview", Transparency = 0.5, CFrame = CFrame.new(GetPlot().OriginSquare.Position + v), Size = GetPlot().OriginSquare.Size, Color = Color3.fromRGB(124, 92, 70), Material = Enum.Material.Concrete, Anchored = true, CanCollide = false})

  2624. end

  2625. LandArtMove = Mouse.Move:Connect(function()

  2626. local Target = Mouse.Target

  2627. if Target:IsA"Part" and Target.Name == "LandPreview" then

  2628. Selection.Adornee = Target

  2629. else

  2630. Selection.Adornee = nil

  2631. end

  2632. end)

  2633. LandArtClick = Mouse.Button1Down:Connect(function()

  2634. local Target = Mouse.Target

  2635. if Target:IsA"Part" and Target.Name == "LandPreview" then

  2636. game.ReplicatedStorage.PropertyPurchasing.ClientExpandedProperty:FireServer(GetPlot(), CFrame.new(Target.CFrame.p))

  2637. Target:Destroy()

  2638. end

  2639. end)

  2640. end

  2641. --#endregion

  2642. --#endregion

  2643. --#region Woodstuff + VehicleSpawner

  2644. local AxeClassesFolder = game:GetService("ReplicatedStorage").AxeClasses

  2645. function GetBestAxe(Tree)

  2646. if game.Players.LocalPlayer.Character:FindFirstChild("Tool") then

  2647. game.Players.LocalPlayer.Character.Humanoid:UnequipTools()

  2648. end

  2649. local SelectedTool = nil

  2650. local HighestAxeDamage = 0

  2651. for i,v in next, game.Players.LocalPlayer.Backpack:GetChildren() do

  2652. if v.Name == "Tool" then

  2653. if require(AxeClassesFolder:FindFirstChild("AxeClass_"..v.ToolName.Value)).new().Damage > HighestAxeDamage then

  2654. SelectedTool = v

  2655. if require(AxeClassesFolder:FindFirstChild("AxeClass_"..v.ToolName.Value)).new().SpecialTrees then

  2656. if require(AxeClassesFolder:FindFirstChild("AxeClass_"..v.ToolName.Value)).new().SpecialTrees[Tree] then

  2657. return v

  2658. end

  2659. end

  2660. end

  2661. end

  2662. end

  2663. return SelectedTool

  2664. end

  2665. function GetAxeDamage(Tree)

  2666. if game.Players.LocalPlayer.Character:FindFirstChild("Tool") then

  2667. game.Players.LocalPlayer.Character.Humanoid:UnequipTools()

  2668. end

  2669. if require(AxeClassesFolder:FindFirstChild("AxeClass_"..GetBestAxe(Tree).ToolName.Value)).new().SpecialTrees then

  2670. if require(AxeClassesFolder:FindFirstChild("AxeClass_"..GetBestAxe(Tree).ToolName.Value)).new().SpecialTrees[Tree] then

  2671. return require(AxeClassesFolder:FindFirstChild("AxeClass_"..GetBestAxe(Tree).ToolName.Value)).new().SpecialTrees[Tree].Damage

  2672. end

  2673. end

  2674. return require(AxeClassesFolder:FindFirstChild("AxeClass_"..GetBestAxe(Tree).ToolName.Value)).new().Damage

  2675. end

  2676. function ChopTree(CutEventRemote, ID, Height,Tree)

  2677. game:GetService("ReplicatedStorage").Interaction.RemoteProxy:FireServer(CutEventRemote, {["tool"] = GetBestAxe(Tree), ["faceVector"] = Vector3.new(1, 0, 0), ["height"] = Height, ["sectionId"] = ID, ["hitPoints"] = GetAxeDamage(Tree), ["cooldown"] = 0.25837870788574, ["cuttingClass"] = "Axe"})

  2678. end

  2679. function DicmemberTree()

  2680. OldPos = game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame

  2681. local LogChopped = false

  2682. branchadded = game:GetService("Workspace").LogModels.ChildAdded:Connect(function(v)

  2683. if v:WaitForChild("Owner") and v.Owner.Value == game.Players.LocalPlayer then

  2684. if v:WaitForChild("WoodSection") then

  2685. LogChopped = true

  2686. end

  2687. end

  2688. end)

  2689. DismemberTreeC = Mouse.Button1Up:Connect(function()

  2690. Clicked = Mouse.Target

  2691. if Clicked.Parent:FindFirstAncestor("LogModels") then

  2692. if Clicked.Parent:FindFirstChild("Owner") and Clicked.Parent.Owner.Value == game.Players.LocalPlayer then

  2693. TreeToJointCut = Clicked.Parent

  2694. end

  2695. end

  2696. end)

  2697. repeat task.wait() until tostring(TreeToJointCut) ~= "nil"

  2698. if TreeToJointCut:FindFirstChild("WoodClass") and TreeToJointCut.WoodClass.Value == "LoneCave" then

  2699. if GetBestAxe("LoneCave").ToolName.Value ~= "EndTimesAxe" then

  2700. return print("Error","You need an end times axe")

  2701. end

  2702. end

  2703. for i,v in next, TreeToJointCut:GetChildren() do

  2704. if v.Name == "WoodSection" then

  2705. if v:FindFirstChild("ID") and v.ID.Value ~= 1 then

  2706. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(v.CFrame.p)

  2707. repeat

  2708. ChopTree(v.Parent:FindFirstChild("CutEvent"), v.ID.Value, 0, v.Parent:FindFirstChild("TreeClass").Value) -- 0.32 test

  2709. task.wait()

  2710. until LogChopped == true

  2711. LogChopped = false

  2712. task.wait(1)

  2713. end

  2714. end

  2715. end

  2716. TreeToJointCut = nil

  2717. branchadded:Disconnect()

  2718. DismemberTreeC:Disconnect()

  2719. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = OldPos

  2720. end

  2721. function VehicleSpawner(Color)

  2722. notifications:message{

  2723. Title = "Butter",

  2724. Description = "Click a car spawn pad",

  2725. Icon = 6023426926

  2726. }

  2727. if tostring(Color) == "Car Colors" then return end

  2728. AbortVehicleSpawner = false

  2729. RespawnedCar = game:GetService("Workspace").PlayerModels.ChildAdded:connect(function(v)

  2730. if v:WaitForChild("Owner") and v.Owner.Value == game.Players.LocalPlayer then

  2731. if v:WaitForChild("PaintParts") then

  2732. VehicleRespawnedColor = v.PaintParts:WaitForChild("Part")

  2733. end

  2734. end

  2735. end)

  2736. VehicleSpawnerVal = Mouse.Button1Up:Connect(function()

  2737. if Mouse.Target.Parent:FindFirstChild("Owner") then

  2738. if Mouse.Target.Parent.Owner.Value == game.Players.LocalPlayer then

  2739. if Mouse.Target.Parent.Type.Value == "Vehicle Spot" then

  2740. SelectedSpawnPad = Mouse.Target

  2741. repeat

  2742. if AbortVehicleSpawner then VehicleSpawnerVal:Disconnect() RespawnedCar:Disconnect() return end

  2743. game:GetService("ReplicatedStorage").Interaction.RemoteProxy:FireServer(SelectedSpawnPad.Parent.ButtonRemote_SpawnButton)

  2744. task.wait(1)

  2745. until VehicleRespawnedColor.BrickColor.Name == SelectedSpawnColor

  2746. GUI:Notification{

  2747. Title = "Vehicle Spawner",

  2748. Text = "Selected Car Spawned",

  2749. Duration = 4,

  2750. Callback = function() end

  2751. }

  2752. VehicleSpawnerVal:Disconnect()

  2753. RespawnedCar:Disconnect()

  2754. end

  2755. end

  2756. end

  2757. end)

  2758. end

  2759. --#endregion

  2760. --#region ViewEndTree

  2761. function ViewEndTree(Val)

  2762. for i,v in pairs(game.Workspace:GetChildren()) do

  2763. if v.Name == "TreeRegion" then

  2764. for i,v in pairs(v:GetChildren()) do

  2765. if v:FindFirstChild("Owner") and tostring(v.Owner.Value) == "nil" then

  2766. if v:FindFirstChild("TreeClass") and tostring(v.TreeClass.Value) == "LoneCave" then

  2767. if Val then

  2768. game.Workspace.Camera.CameraSubject = v:FindFirstChild("WoodSection")

  2769. else

  2770. game.Workspace.Camera.CameraSubject = game.Players.LocalPlayer.Character.Humanoid

  2771. end

  2772. end

  2773. end

  2774. end

  2775. end

  2776. end

  2777. end

  2778. --#endregion

  2779. --#region Trolling

  2780. function ClearShopItems()

  2781. for i,v in next, game:GetService("Workspace").Stores:GetChildren() do

  2782. if v.Name == "ShopItems" then

  2783. for i,v in next, v:GetChildren() do

  2784. if v:FindFirstChild("Owner") and v.Owner.Value == nil then

  2785. spawn(function()

  2786. for i = 1,10 do

  2787. game.ReplicatedStorage.Interaction.ClientIsDragging:FireServer(v)

  2788. v.Main.CFrame = v.Main.CFrame + Vector3.new(0,0,25)

  2789. task.wait()

  2790. end

  2791. end)

  2792. end

  2793. end

  2794. end

  2795. end

  2796. end

  2797. function BringPlayer()

  2798. if not game.Players.LocalPlayer.Character.Humanoid.SeatPart then return notifications:message{Title = "Butter",Description = "You need to sit in a car for this feature!",Icon = 6023426926} end

  2799. local oldpos = game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame

  2800. repeat wait()

  2801. game.Players.LocalPlayer.Character.Humanoid.SeatPart.Parent:SetPrimaryPartCFrame(game.Players[plrselected].Character.Head.CFrame,(game.Players.LocalPlayer.Character.HumanoidRootPart))

  2802. game.Players.LocalPlayer.Character.Humanoid.SeatPart.Parent:SetPrimaryPartCFrame(game.Players.LocalPlayer.Character.Humanoid.SeatPart.CFrame * CFrame.Angles(math.rad(180),0,0))

  2803. until game.Players[plrselected].Character.Humanoid.SeatPart

  2804. game.Players.LocalPlayer.Character.Humanoid.SeatPart.Parent:SetPrimaryPartCFrame(oldpos,(game.Players.LocalPlayer.Character.HumanoidRootPart))

  2805. end

  2806. function KillPlayer()

  2807. if not game.Players.LocalPlayer.Character.Humanoid.SeatPart then return notifications:message{Title = "Butter",Description = "You need to sit in a car for this feature!",Icon = 6023426926} end

  2808. function teleport(pos)

  2809. game.Players.LocalPlayer.Character.Humanoid.SeatPart.Parent:SetPrimaryPartCFrame(pos,(game.Players.LocalPlayer.Character.HumanoidRootPart))

  2810. end

  2811. repeat wait()

  2812. game.Players.LocalPlayer.Character.Humanoid.SeatPart.Parent:SetPrimaryPartCFrame(game.Players[plrselected].Character.Head.CFrame,(game.Players.LocalPlayer.Character.HumanoidRootPart))

  2813. game.Players.LocalPlayer.Character.Humanoid.SeatPart.Parent:SetPrimaryPartCFrame(game.Players.LocalPlayer.Character.Humanoid.SeatPart.CFrame * CFrame.Angles(math.rad(180),0,0))

  2814. until game.Players[plrselected].Character.Humanoid.SeatPart

  2815. teleport(CFrame.new(-1675.2, 261.303, 1284.2))

  2816. end

  2817. --#endregion

  2818. --#region OneUnitCutter

  2819. function PlrHasTool()

  2820. if game.Players.LocalPlayer.Backpack:FindFirstChild("Tool") or game.Players.LocalPlayer.Character:FindFirstChild("Tool") then

  2821. return true

  2822. end

  2823. return false

  2824. end

  2825. function OneUnitCutter(Val)

  2826. if not Val then PlankReAdded:Disconnect() UnitCutterClick:Disconnect() return end

  2827. PlankReAdded = game:GetService("Workspace").PlayerModels.ChildAdded:Connect(function(v)

  2828. if v:WaitForChild("TreeClass") and v:WaitForChild("WoodSection") then

  2829. SelTree = v

  2830. task.wait()

  2831. end

  2832. end)

  2833. UnitCutterClick = Mouse.Button1Up:Connect(function()

  2834. Clicked = Mouse.Target

  2835. if not PlrHasTool() then return end

  2836. if Clicked.Name == "WoodSection" then

  2837. SelTree = Clicked.Parent

  2838. game.Players.LocalPlayer.Character:MoveTo(Clicked.Position + Vector3.new(0,3,-3))

  2839. repeat

  2840. if UnitCutter == false then break end

  2841. ChopTree(SelTree.CutEvent,1,1,SelTree.TreeClass.Value)

  2842. if SelTree:FindFirstChild("WoodSection") then game.Players.LocalPlayer.Character:MoveTo(SelTree:FindFirstChild("WoodSection").Position + Vector3.new(0,3,-3)) end

  2843. task.wait()

  2844. until SelTree.WoodSection.Size.X <= 1.88 and SelTree.WoodSection.Size.Y <= 1.88 and SelTree.WoodSection.Size.Z <= 1.88

  2845. end

  2846. end)

  2847. end

  2848. --#endregion

  2849. --#region UI Glow

  2850. local glow = Instance.new("ImageLabel")

  2851. local UIGradient = Instance.new("UIGradient")

  2852. function glowong()

  2853. glow.Name = "glow"

  2854. glow.Parent = game:GetService("CoreGui")["frosty is cute"].Main

  2855. glow.BackgroundColor3 = Color3.fromRGB(255, 255, 255)

  2856. glow.BackgroundTransparency = 1.000

  2857. glow.Position = UDim2.new(0, -15, 0, -15)

  2858. glow.Size = UDim2.new(1, 30, 1, 30)

  2859. glow.ZIndex = 0

  2860. glow.Image = "rbxassetid://5028857084"

  2861. glow.ScaleType = Enum.ScaleType.Slice

  2862. glow.SliceCenter = Rect.new(24, 24, 276, 276)

  2863. UIGradient.Color = ColorSequence.new{ColorSequenceKeypoint.new(0.00, Color3.fromRGB(255, 0, 4)), ColorSequenceKeypoint.new(0.10, Color3.fromRGB(255, 0, 153)), ColorSequenceKeypoint.new(0.20, Color3.fromRGB(204, 0, 255)), ColorSequenceKeypoint.new(0.30, Color3.fromRGB(51, 0, 255)), ColorSequenceKeypoint.new(0.40, Color3.fromRGB(0, 106, 255)), ColorSequenceKeypoint.new(0.50, Color3.fromRGB(0, 255, 255)), ColorSequenceKeypoint.new(0.60, Color3.fromRGB(0, 255, 102)), ColorSequenceKeypoint.new(0.70, Color3.fromRGB(51, 255, 0)), ColorSequenceKeypoint.new(0.80, Color3.fromRGB(204, 255, 0)), ColorSequenceKeypoint.new(0.90, Color3.fromRGB(228, 137, 0)), ColorSequenceKeypoint.new(1.00, Color3.fromRGB(255, 0, 0))}

  2864. UIGradient.Rotation = 45

  2865. UIGradient.Parent = glow

  2866. task.spawn(function()

  2867. while task.wait() do

  2868. twes(UIGradient,{Rotation=UIGradient.Rotation+360},"Linear","In",6)

  2869. wait(6)

  2870. end

  2871. game:GetService('TweenService'):Create(UIGradient,TweenInfo.new(tim,Enum.EasingStyle[style],Enum.EasingDirection[dir]),changes):Play()

  2872. end)

  2873. end

  2874. --#endregion

  2875. --#region Wood/Item Teleport

  2876. function delallselections()

  2877. for i,v in pairs(game.Workspace.PlayerModels:GetChildren()) do

  2878. if v:FindFirstChild("Main") then

  2879. if v.Main:FindFirstChild("Selection") then

  2880. v.Main.Selection:Destroy()

  2881. end

  2882. end

  2883. end

  2884. for i,v in pairs(game.Workspace.PlayerModels:GetChildren()) do

  2885. if v:FindFirstChild("WoodSection") then

  2886. if v.WoodSection:FindFirstChild("Selection") then

  2887. v.WoodSection.Selection:Destroy()

  2888. end

  2889. end

  2890. end

  2891. for i,v in pairs(game.Workspace.PlayerModels:GetChildren()) do

  2892. if v:FindFirstChild("BuildDependentWood") then

  2893. if v.BuildDependentWood:FindFirstChild("Selection") then

  2894. v.BuildDependentWood.Selection:Destroy()

  2895. end

  2896. end

  2897. end

  2898. end

  2899. function SelectionTp(tpitemspeed,direction,Cords)

  2900. OldPosB = game.Players.LocalPlayer.Character:FindFirstChild("HumanoidRootPart").CFrame

  2901. if direction == "Sideways" then

  2902. OldPos = CFrame.new(314.776245, -1.59285617, 87.8067551, 0.999702156, 0.000650099711, 0.0243966226, -8.99892871e-09, 0.999645174, -0.0266372953, -0.024405282, 0.0266293604, 0.999347389) * CFrame.Angles(math.rad(90), 0, 0) + Vector3.new(0, 1, 0),1000,game.Players.LocalPlayer.Character:FindFirstChild("HumanoidRootPart").CFrame

  2903. elseif direction == "Upwards" then

  2904. OldPos = Cords.CFrame

  2905. end

  2906. camon()

  2907. for i,v in next, game.Workspace.PlayerModels:GetDescendants() do

  2908. if v:FindFirstChild("Selection") then

  2909. --for i = 1, math.huge do

  2910. --wait(tpitemspeed)

  2911. --if (v.Position - OldPos.Position).Magnitude < 3 then

  2912. --break

  2913. --end

  2914. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(v:FindFirstChild("Selection").Parent.CFrame.p) * CFrame.new(5,0,0) wait(tpitemspeed)

  2915. pcall(function()

  2916. if not v.Parent.PrimaryPart then

  2917. v.Parent.PrimaryPart = v:FindFirstChild("Selection").Parent

  2918. end

  2919. while not isnetworkowner(v) do

  2920. game.ReplicatedStorage.Interaction.ClientIsDragging:FireServer(v.Parent)

  2921. task.wait()

  2922. end

  2923. game.ReplicatedStorage.Interaction.ClientIsDragging:FireServer(v.Parent)

  2924. v:PivotTo(OldPos)

  2925. end)

  2926. wait(tpitemspeed)

  2927. end

  2928. end

  2929. camoff()

  2930. delallselections()

  2931. if getgenv().whendonetp then

  2932. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = OldPosB

  2933. end

  2934. end

  2935. function ClickToTP()

  2936. if ClickTp == false then ClickToSellMouseVal:Disconnect() return end

  2937. ClickToSellMouseVal = Mouse.Button1Up:Connect(function()

  2938. local target = Mouse.Target.Parent

  2939. if target:FindFirstChild("Owner") and target:FindFirstChild("Main") then

  2940. for i,v in pairs(game.Workspace.PlayerModels:GetChildren()) do

  2941. if Mouse.Target:FindFirstChild("Selection") then

  2942. else

  2943. local bob = Instance.new("SelectionBox", target.Main)

  2944. bob.Name = "Selection"

  2945. bob.Adornee = bob.Parent

  2946. --a.AlwaysOnTop = true

  2947. bob.SurfaceTransparency = 0.5

  2948. bob.LineThickness = 0.09

  2949. bob.SurfaceColor3 = Color3.fromRGB(0,0,0)

  2950. bob.Color3 = Color3.fromRGB(0,172,240)

  2951. end

  2952. end

  2953. elseif target:FindFirstChild("Owner") and target:FindFirstChild("WoodSection") then

  2954. for i,v in pairs(game.Workspace.PlayerModels:GetChildren()) do

  2955. if Mouse.Target:FindFirstChild("Selection") then

  2956. else

  2957. local bob = Instance.new("SelectionBox", target.WoodSection)

  2958. bob.Name = "Selection"

  2959. bob.Adornee = bob.Parent

  2960. --a.AlwaysOnTop = true

  2961. bob.SurfaceTransparency = 0.5

  2962. bob.LineThickness = 0.09

  2963. bob.SurfaceColor3 = Color3.fromRGB(0,0,0)

  2964. bob.Color3 = Color3.fromRGB(0,172,240)

  2965. end

  2966. end

  2967. end

  2968. end)

  2969. end

  2970. function selectionv2(PLY)

  2971. OldPos = game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame

  2972. if getgenv().selectionv2 == false then Betterselection:Disconnect() return end

  2973. Betterselection = Mouse.Button1Up:Connect(function()

  2974. for i,v in pairs(game.Workspace.PlayerModels:GetChildren()) do

  2975. --local target = Mouse.Target.Parent

  2976. if v:FindFirstChild("Main") then

  2977. if v.Main.Parent.Name == Mouse.Target.Parent.Name then

  2978. if Mouse.Target.Parent:FindFirstChild("Owner") and tostring(v.Owner.Value) == PLY then

  2979. if v.Main:FindFirstChild("Selection") then

  2980. else

  2981. local bobv2 = Instance.new("SelectionBox", v.Main)

  2982. bobv2.Name = "Selection"

  2983. bobv2.Adornee = bobv2.Parent

  2984. bobv2.SurfaceTransparency = 0.5

  2985. bobv2.LineThickness = 0.09

  2986. bobv2.SurfaceColor3 = Color3.fromRGB(0,0,0)

  2987. bobv2.Color3 = Color3.fromRGB(0,172,240)

  2988. end

  2989. end

  2990. end

  2991. elseif v:FindFirstChild("WoodSection") then

  2992. if v.WoodSection.Parent.Name == Mouse.Target.Parent.Name then

  2993. if v.TreeClass.Value == Mouse.Target.Parent.TreeClass.Value then

  2994. if Mouse.Target.Parent:FindFirstChild("Owner") and tostring(v.Owner.Value) == PLY then

  2995. if v.WoodSection:FindFirstChild("Selection") then

  2996. else

  2997. local bobv2 = Instance.new("SelectionBox", v.WoodSection)

  2998. bobv2.Name = "Selection"

  2999. bobv2.Adornee = bobv2.Parent

  3000. bobv2.SurfaceTransparency = 0.5

  3001. bobv2.LineThickness = 0.09

  3002. bobv2.SurfaceColor3 = Color3.fromRGB(0,0,0)

  3003. bobv2.Color3 = Color3.fromRGB(0,172,240)

  3004. end

  3005. end

  3006. end

  3007. end

  3008. end

  3009. end

  3010. end)

  3011. end

  3012. --#endregion

  3013. --#region AutoBuild

  3014. function convertCFrameToTable(cframe)

  3015. local components = {cframe:GetComponents()}

  3016. components[1] = components[1] - posforX -- X

  3017. components[2] = components[2] - posforY --Y

  3018. components[3] = components[3] - posforZ -- Z

  3019. return {

  3020. [1] = components[1],

  3021. [2] = components[2],

  3022. [3] = components[3],

  3023. [4] = components[4],

  3024. [5] = components[5],

  3025. [6] = components[6],

  3026. [7] = components[7],

  3027. [8] = components[8],

  3028. [9] = components[9],

  3029. [10] = components[10],

  3030. [11] = components[11],

  3031. [12] = components[12]

  3032. }

  3033. end

  3034. function CopyBase(file,plrbase)

  3035. partsData = {}

  3036. for i,v in next, game:GetService("Workspace").Properties:GetChildren() do

  3037. if v:FindFirstChild("Owner") and tostring(v.Owner.Value) == plrbase then

  3038. posforX = v:FindFirstChild("OriginSquare").Position.X

  3039. posforY = v:FindFirstChild("OriginSquare").Position.Y

  3040. posforZ = v:FindFirstChild("OriginSquare").Position.Z

  3041. end

  3042. end

  3043. for _, part in ipairs(workspace.PlayerModels:GetDescendants()) do

  3044. if not string.find(part.Name:lower(), "glass") and part.Name == "BuildDependentWood" then

  3045. if part.parent:FindFirstChild("MainCFrame") and part.parent:FindFirstChild("BlueprintWoodClass") then

  3046. if tostring(part.parent:FindFirstChild("Owner").Value) == plrbase then

  3047. local partData = {

  3048. Blueprint = part.parent:FindFirstChild("ItemName").Value,

  3049. WoodClass = part.parent:FindFirstChild("BlueprintWoodClass").Value,

  3050. Position = convertCFrameToTable(part.parent:FindFirstChild("MainCFrame").Value),

  3051. }

  3052. table.insert(partsData, partData)

  3053. end

  3054. end

  3055. end

  3056. end

  3057. writefile(tostring(file .. ".json"), HttpService:JSONEncode(partsData))

  3058. end

  3059. function spawnPart(partData)

  3060. print(partData.Blueprint)

  3061. game:GetService("ReplicatedStorage").PlaceStructure.ClientPlacedBlueprint:FireServer(partData.Blueprint, CFrame.new(posforX + partData.Position[1], posforY + partData.Position[2], posforZ + partData.Position[3], partData.Position[4], partData.Position[5], partData.Position[6], partData.Position[7], partData.Position[8], partData.Position[9], partData.Position[10], partData.Position[11], partData.Position[12]), game:GetService("Players").LocalPlayer)

  3062. end

  3063. function LoadBaseFile(file)

  3064. local userinfo = HttpService:JSONDecode(readfile(tostring(file .. ".json")))

  3065. for i,v in next, game:GetService("Workspace").Properties:GetChildren() do

  3066. if v:FindFirstChild("Owner") and tostring(v.Owner.Value) == game:GetService("Players").LocalPlayer.Name then

  3067. posforX = v:FindFirstChild("OriginSquare").Position.X

  3068. posforY = v:FindFirstChild("OriginSquare").Position.Y

  3069. posforZ = v:FindFirstChild("OriginSquare").Position.Z

  3070. end

  3071. end

  3072. wait(1)

  3073. for _, partData in ipairs(userinfo) do

  3074. if NumberofBps == 50 then

  3075. print("hit 50 fill")

  3076. repeat wait() until getgenv().nextpage

  3077. NumberofBps = 0

  3078. end

  3079. NumberofBps = NumberofBps + 1

  3080. spawnPart(partData)

  3081. wait(1)

  3082. end

  3083. end

  3084. function LoadPreview()

  3085. for i,v in next, game:GetService("Workspace").Properties:GetChildren() do

  3086. if v:FindFirstChild("Owner") and tostring(v.Owner.Value) == game:GetService("Players").LocalPlayer.Name then

  3087. posforX = v:FindFirstChild("OriginSquare").Position.X

  3088. posforY = v:FindFirstChild("OriginSquare").Position.Y

  3089. posforZ = v:FindFirstChild("OriginSquare").Position.Z

  3090. end

  3091. end

  3092. for i, v in pairs(workspace.Preview:GetDescendants()) do

  3093. if v:IsA("BasePart") then

  3094. local currentPosition = v.Position

  3095. local treeclass = v.Parent:FindFirstChild("TreeClass").Value

  3096. v.Position = currentPosition + Vector3.new(posforX, posforY, posforZ)

  3097. local material = treeclass == "LoneCave" and Enum.Material.Foil

  3098. or treeclass == "Frost" and Enum.Material.Ice

  3099. or treeclass == "Spooky" and Enum.Material.Granite

  3100. or treeclass == "SnowGlow" and Enum.Material.SmoothPlastic

  3101. or treeclass == "CaveCrawler" and Enum.Material.Neon

  3102. or treeclass == "SpookyNeon" and Enum.Material.Neon

  3103. or Enum.Material.Wood

  3104. local color = treeclass == "SpookyNeon" and Color3.fromRGB(170, 85, 0)

  3105. or treeclass == "Spooky" and Color3.fromRGB(170, 85, 0)

  3106. or treeclass == "CaveCrawler" and Color3.fromRGB(16, 42, 220)

  3107. or treeclass == "LoneCave" and Color3.fromRGB(248,248,248)

  3108. or treeclass == "SnowGlow" and Color3.fromRGB(255,255,0)

  3109. or treeclass == "Frost" and Color3.fromRGB(159,243,233)

  3110. or treeclass == "Volcano" and Color3.fromRGB(255, 0, 0)

  3111. or treeclass == "GreenSwampy" and Color3.fromRGB(52, 142, 64)

  3112. or treeclass == "GoldSwampy" and Color3.fromRGB(226, 155, 64)

  3113. or treeclass == "Cherry" and Color3.fromRGB(163, 75, 75)

  3114. or treeclass == "Pine" and Color3.fromRGB(215, 197, 154)

  3115. or treeclass == "Walnut" and Color3.fromRGB(105, 64, 40)

  3116. or treeclass == "Oak" and Color3.fromRGB(234, 184, 146)

  3117. or treeclass == "Birch" and Color3.fromRGB(205, 205, 205)

  3118. or treeclass == "Koa" and Color3.fromRGB(143, 76, 42)

  3119. or treeclass == "Generic" and Color3.fromRGB(204, 142, 105)

  3120. or treeclass == "Palm" and Color3.fromRGB(226, 220, 188)

  3121. or treeclass == "Pine" and Color3.fromRGB(215, 197, 154)

  3122. or treeclass == "Walnut" and Color3.fromRGB(105, 64, 40)

  3123. if v.Transparency == 0.5 then

  3124. v.Color = color

  3125. v.Material = material

  3126. end

  3127. end

  3128. end

  3129. local pre = {}

  3130. for i,v in pairs(workspace.Preview:GetChildren()) do

  3131. table.insert(pre,v:FindFirstChild("BuildDependentWood"))

  3132. end

  3133. for i,v in pairs(workspace.PlayerModels:GetChildren()) do

  3134. if v:FindFirstChild("Owner") and v.Owner.Value == game.Players.LocalPlayer and v:FindFirstChild("Type") and v.Type.Value == "Structure" and v:FindFirstChild("MainCFrame") then

  3135. for i,v in pairs(v:GetChildren()) do

  3136. if v.Name == 'BuildDependentWood' then

  3137. for k,l in pairs(pre) do

  3138. local pos1 = l.CFrame.Position

  3139. local pos2 = v.CFrame.Position

  3140. local reconstructed1 = Vector3.new(math.floor(pos1.X),math.floor(pos1.Y),math.floor(pos1.Z))

  3141. local reconstructed2 = Vector3.new(math.floor(pos2.X),math.floor(pos2.Y),math.floor(pos2.Z))

  3142. if reconstructed1 == reconstructed2 then

  3143. if l.Parent ~= nil then l.Parent:Destroy() end

  3144. end

  3145. end

  3146. end

  3147. end

  3148. end

  3149. end

  3150. end

  3151. --#endregion

  3152. --#region Autofill

  3153. function SelectionTpWOOD(tpitemspeedW, owner)

  3154. local selectedWood = {}

  3155. local selectedBlueprints = {}

  3156. for _, v in ipairs(game.Workspace.PlayerModels:GetDescendants()) do

  3157. if v:FindFirstChild("Selection") then

  3158. table.insert(selectedWood, v)

  3159. elseif v.Name == "Type" and v.Value == "Blueprint" and tostring(v.Parent.Owner.Value) == owner and v.Parent:FindFirstChild("BuildDependentWood") and v.Parent.BuildDependentWood.Transparency ~= 1 then

  3160. table.insert(selectedBlueprints, v.Parent.BuildDependentWood)

  3161. end

  3162. end

  3163. local numBlueprints = math.min(#selectedWood, #selectedBlueprints)

  3164. for i = 1, numBlueprints do

  3165. local woodPiece = selectedWood[i]

  3166. local correspondingBlueprint = selectedBlueprints[i]

  3167. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(woodPiece:FindFirstChild("Selection").Parent.CFrame.p) * CFrame.new(5, 0, 0)

  3168. task.wait(tpitemspeedW)

  3169. if not woodPiece.Parent.PrimaryPart then

  3170. woodPiece.Parent.PrimaryPart = woodPiece:FindFirstChild("Selection").Parent

  3171. end

  3172. local Freeze, Pos = Instance.new("BodyVelocity", woodPiece), Instance.new("BodyPosition", woodPiece)

  3173. Freeze.Velocity = Vector3.new(0, 0, 0)

  3174. Freeze.MaxForce = Vector3.new(math.huge, math.huge, math.huge)

  3175. Freeze.P = 9000

  3176. Pos.MaxForce = Vector3.new(0, 0, 0)

  3177. Pos.P = 100000

  3178. pcall(function()

  3179. while not isnetworkowner(woodPiece.Selection.Parent) do

  3180. game.ReplicatedStorage.Interaction.ClientIsDragging:FireServer(woodPiece.Parent)

  3181. task.wait(tpitemspeedW)

  3182. end

  3183. game.ReplicatedStorage.Interaction.ClientIsDragging:FireServer(woodPiece.Parent)

  3184. woodPiece.Selection.Parent:PivotTo(correspondingBlueprint.CFrame)

  3185. end)

  3186. spawn(function()

  3187. wait(5)

  3188. Freeze:Destroy()

  3189. Pos:Destroy()

  3190. end)

  3191. end

  3192. end

  3193. local wpcf = {}

  3194. local numBlueprints = 0

  3195. local function getSize(plank,max,min)

  3196. local x,y,z = plank.Size.X,plank.Size.Y,plank.Size.Z

  3197. local calculated = (x*y*z)

  3198. if calculated <= max and calculated >= min then return true end

  3199. return false

  3200. end

  3201. local function fillPreviewsWithColors(waitTime)

  3202. local selectedWood = {}

  3203. local woodPiece

  3204. local typewood

  3205. local correspondingBlueprint

  3206. for i,v in pairs(workspace.Preview:GetChildren()) do

  3207. wpcf[v.PrimaryPart.CFrame] = {v,v.TreeClass.Value}

  3208. end

  3209. for i,v in pairs(workspace.PlayerModels:GetChildren()) do

  3210. if v:FindFirstChild("WoodSection") and v:FindFirstChild("TreeClass") and v:FindFirstChild("Owner") and v.Owner.Value == game.Players.LocalPlayer and getSize(v.WoodSection,3,1) then

  3211. selectedWood[v.WoodSection] = v.TreeClass.Value

  3212. end

  3213. end

  3214. for i,v in pairs(wpcf) do

  3215. numBlueprints = numBlueprints + 1

  3216. end

  3217. for i = 1, numBlueprints do

  3218. for i,v in pairs(wpcf) do

  3219. correspondingBlueprint = i

  3220. typewood = v[2]

  3221. end

  3222. for i,v in pairs(selectedWood) do

  3223. if v == typewood then

  3224. woodPiece = i

  3225. end

  3226. end

  3227. game:GetService("ReplicatedStorage").PlaceStructure.ClientPlacedBlueprint:FireServer(wpcf[correspondingBlueprint][1].Name,correspondingBlueprint,game.Players.LocalPlayer)

  3228. local oldTick = tick()

  3229. wpcf[correspondingBlueprint][1]:Destroy()

  3230. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(woodPiece.CFrame.p) * CFrame.new(5, 0, 0)

  3231. local oldCF = CFrame.new(woodPiece.CFrame.p) * CFrame.new(5, 0, 0)

  3232. pcall(function()

  3233. if not woodPiece.Parent.PrimaryPart then

  3234. woodPiece.Parent.PrimaryPart = woodPiece

  3235. end

  3236. end)

  3237. while not isnetworkowner(woodPiece) do

  3238. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(woodPiece.CFrame.p) * CFrame.new(5, 0, 0)

  3239. oldCF = CFrame.new(woodPiece.CFrame.p) * CFrame.new(5, 0, 0)

  3240. game.ReplicatedStorage.Interaction.ClientIsDragging:FireServer(woodPiece.Parent)

  3241. task.wait(0.05)

  3242. end

  3243. game.ReplicatedStorage.Interaction.ClientIsDragging:FireServer(woodPiece.Parent)

  3244. woodPiece:PivotTo(correspondingBlueprint)

  3245. local Freeze, Pos = Instance.new("BodyVelocity", woodPiece), Instance.new("BodyPosition", woodPiece)

  3246. Freeze.Velocity = Vector3.new(0, 0, 0)

  3247. Freeze.MaxForce = Vector3.new(math.huge, math.huge, math.huge)

  3248. Freeze.P = 9000

  3249. Pos.MaxForce = Vector3.new(0, 0, 0)

  3250. Pos.P = 100000

  3251. local tick2 = tick()

  3252. repeat task.wait()

  3253. if not isnetworkowner(woodPiece) then

  3254. repeat

  3255. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(woodPiece.CFrame.p) * CFrame.new(5, 0, 0)

  3256. task.wait(0.05)

  3257. game.ReplicatedStorage.Interaction.ClientIsDragging:FireServer(woodPiece.Parent)

  3258. task.wait(0.05)

  3259. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = oldCF

  3260. task.wait(0.05)

  3261. game.ReplicatedStorage.Interaction.ClientIsDragging:FireServer(woodPiece.Parent)

  3262. until isnetworkowner(woodPiece)

  3263. end

  3264. if tick() - tick2 >= 2.5 then

  3265. for i = 1,10 do

  3266. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(woodPiece.CFrame.p) * CFrame.new(5, 0, 0)

  3267. task.wait(0.05)

  3268. game.ReplicatedStorage.Interaction.ClientIsDragging:FireServer(woodPiece.Parent)

  3269. task.wait(0.05)

  3270. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = oldCF

  3271. task.wait(0.05)

  3272. game.ReplicatedStorage.Interaction.ClientIsDragging:FireServer(woodPiece.Parent)

  3273. end

  3274. end

  3275. task.wait(waitTime)

  3276. woodPiece:PivotTo(correspondingBlueprint)

  3277. print(isnetworkowner(woodPiece))

  3278. until woodPiece.Parent == nil

  3279. wpcf[correspondingBlueprint] = nil

  3280. selectedWood[woodPiece] = nil

  3281. print(tick()-oldTick)

  3282. repeat task.wait()

  3283. until tick()-oldTick >= 1

  3284. end

  3285. end

  3286. --#endregion

  3287. --#region Blueprint options

  3288. function Destroybp()

  3289. for i,v in pairs(game:GetService("Workspace").PlayerModels:GetDescendants()) do

  3290. if v.Name == "Selection" and "BuildDependentWood" then

  3291. --game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(v.Parent.CFrame.p) * CFrame.new(5,0,0)

  3292. game:GetService("ReplicatedStorage").Interaction.DestroyStructure:FireServer(v.Parent.Parent)

  3293. wait(1)

  3294. end

  3295. end

  3296. end

  3297. --#endregion

  3298. --#region SignDupe

  3299. local SelectPurchase = game:GetService("Players").LocalPlayer.PlayerGui.PropertyPurchasingGUI.SelectPurchase

  3300. local VirtualInputManager = game:GetService("VirtualInputManager")

  3301. local PlayerModels = game:GetService("Workspace").PlayerModels

  3302. function things(bestslotnum,Mainacc)

  3303. for _, property in ipairs(game:GetService("Workspace").Properties:GetChildren()) do

  3304. local owner = property.Owner

  3305. if owner and owner.Value == nil then

  3306. game:GetService("ReplicatedStorage").PropertyPurchasing.ClientPurchasedProperty:FireServer(property, property.OriginSquare.Position)

  3307. game:GetService("Players").LocalPlayer.Character.HumanoidRootPart.CFrame = property.OriginSquare.CFrame + Vector3.new(0, 2, 0)

  3308. break

  3309. end

  3310. end

  3311. wait(1.5)

  3312. for _, model in ipairs(PlayerModels:GetChildren()) do

  3313. if model:FindFirstChild("Owner") and model.Owner.Value == game:GetService("Players").LocalPlayer then

  3314. --check if sign has been used

  3315. if model:FindFirstChild("Used") then

  3316. else

  3317. local itemName = model.ItemName and model.ItemName.Value

  3318. if itemName == "PropertySoldSign" then

  3319. game:GetService("Players").LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(model.Main.CFrame.p) + Vector3.new(0, 0, 2)

  3320. game:GetService("ReplicatedStorage").Interaction.ClientInteracted:FireServer(model, "Take down sold sign")

  3321. for i = 1,5 do

  3322. game:GetService("ReplicatedStorage").Interaction.ClientIsDragging:FireServer(model)

  3323. model.Main.CFrame = game:GetService("Players")[Mainacc].Character.HumanoidRootPart.CFrame

  3324. task.wait(0.2)

  3325. end

  3326. game:GetService("ReplicatedStorage").Interaction.ClientIsDragging:FireServer(model)

  3327. model.Main.CFrame = game:GetService("Players")[Mainacc].Character.HumanoidRootPart.CFrame

  3328. --mark sign as used

  3329. local used = Instance.new("BoolValue")

  3330. used.Name = "Used"

  3331. used.Value = true

  3332. used.Parent = model

  3333. coroutine.wrap(function()

  3334. game:GetService("ReplicatedStorage").LoadSaveRequests.RequestLoad:InvokeServer(bestslotnum, game:GetService("Players").LocalPlayer)

  3335. end)()

  3336. break

  3337. end

  3338. end

  3339. end

  3340. end

  3341. end

  3342. function startnewdupe()

  3343. while getgenv().SoldSignAutoFarm do

  3344. things(getgenv().bestnummfordupe,getgenv().Nameforsingdupe)

  3345. repeat wait() until SelectPurchase.Visible

  3346. local gui = SelectPurchase.Quit

  3347. local width, height = gui.AbsoluteSize.X, gui.AbsoluteSize.Y

  3348. local x, y = gui.AbsolutePosition.X, gui.AbsolutePosition.Y

  3349. local centerX, centerY = x + width / 2, y + height / 2

  3350. while SelectPurchase.Visible do

  3351. VirtualInputManager:SendMouseButtonEvent(centerX, centerY + 50, 0, true, game, 0)

  3352. VirtualInputManager:SendMouseButtonEvent(centerX, centerY + 50, 0, false, game, 0)

  3353. wait(0.1)

  3354. end

  3355. wait(1)

  3356. end

  3357. end

  3358. function Signstuff()

  3359. local count = 0

  3360. for i,v in pairs(game:GetService("Workspace").PlayerModels:GetDescendants()) do

  3361. if v.Name == "PropertySoldSign" then

  3362. count = count + 1

  3363. end

  3364. end

  3365. notifications:message{Title = "Butter",Description = "You have " ..count.. " Signs",Icon = 6023426926}

  3366. end

  3367. --#endregion

  3368. --#region Time Maxland

  3369. function BaseDupe()

  3370. local tplot = nil

  3371. repeat

  3372. task.wait()

  3373. until game:GetService("ReplicatedStorage").LoadSaveRequests.ClientMayLoad:InvokeServer(game.Players.LocalPlayer)

  3374. task.wait()

  3375. task.spawn(function()

  3376. game:GetService("ReplicatedStorage").LoadSaveRequests.RequestLoad:InvokeServer(slotnumber, game.Players.LocalPlayer)

  3377. end)

  3378. repeat wait() until game.Players.LocalPlayer.PlayerGui.PropertyPurchasingGUI:WaitForChild("SelectPurchase").Visible == true

  3379. wait(0.5)

  3380. for m, c in ipairs(getconnections(game.Players.LocalPlayer.PlayerGui.PropertyPurchasingGUI.SelectPurchase:WaitForChild("Left").MouseButton1Click)) do

  3381. c.Function()

  3382. task.wait()

  3383. end

  3384. wait(0.1)

  3385. for m, c in ipairs(getconnections(game.Players.LocalPlayer.PlayerGui.PropertyPurchasingGUI.SelectPurchase:WaitForChild("Left").MouseButton1Click)) do

  3386. c.Function()

  3387. task.wait()

  3388. end

  3389. wait(0.25)

  3390. repeat

  3391. task.wait()

  3392. for _, cat in ipairs(game.Workspace:FindFirstChild("Effects"):GetChildren()) do

  3393. if cat.Name == "StructureModel" and cat:FindFirstChild("OriginSquare") then

  3394. local originSquare = cat:FindFirstChild("OriginSquare")

  3395. if originSquare.Position ~= Vector3.new(0, 0, 0) then

  3396. tplot = originSquare.Position

  3397. break

  3398. end

  3399. end

  3400. end

  3401. until tplot ~= nil

  3402. wait(0.1)

  3403. for i, v in ipairs(getconnections(game.Players.LocalPlayer.PlayerGui.PropertyPurchasingGUI.SelectPurchase:WaitForChild("Purchase").MouseButton1Click)) do

  3404. v.Function()

  3405. task.wait()

  3406. end

  3407. repeat task.wait() until game.Players.LocalPlayer.PlayerGui.PropertyPurchasingGUI:WaitForChild("ConfirmPurchase").Visible == true

  3408. for _, n in ipairs(getconnections(game.Players.LocalPlayer.PlayerGui.PropertyPurchasingGUI.ConfirmPurchase:WaitForChild("Purchase").MouseButton1Click)) do

  3409. n.Function()

  3410. task.wait()

  3411. end

  3412. task.wait(dupewaittime)

  3413. for i,v in ipairs(game:GetService("Workspace").Properties:GetChildren()) do

  3414. if v.OriginSquare.Position ~= tplot then

  3415. game:GetService("ReplicatedStorage").PropertyPurchasing.ClientPurchasedProperty:FireServer(v,v.OriginSquare.Position)

  3416. break

  3417. end

  3418. end

  3419. game:Shutdown()

  3420. end

  3421. function getdupetime()

  3422. repeat wait() until game.Players.LocalPlayer.IsBuyingLand.Value

  3423. repeat wait() until not game.Players.LocalPlayer.IsBuyingLand.Value

  3424. local startTime = tick()

  3425. repeat wait() until not game.Players.LocalPlayer.CurrentlySavingOrLoading.Value

  3426. local endTime = tick()

  3427. local elapsedTime = endTime - startTime

  3428. notifications:message{Title = "Butter",Description = "Time elapsed: ".. string.format("%.2f", elapsedTime).. " seconds",Icon = 6023426926}

  3429. end

  3430. --#endregion

  3431. --#region Get DataSize

  3432. function DoesSaveExist(Value)

  3433. local Data = game:GetService("ReplicatedStorage").LoadSaveRequests.GetMetaData:InvokeServer(game.Players.LocalPlayer)

  3434. for i = 1, #Data do

  3435. if i == Value and Data[i].SaveMeta[#Data[i].SaveMeta] then

  3436. return Data[i].SaveMeta[#Data[i].SaveMeta].NumKeys

  3437. end

  3438. end

  3439. return false

  3440. end

  3441. --#endregion

  3442. --#region Mimir Maxland dupe

  3443. function MaxDupe(LITV,MimirV,SlotNum)

  3444. notifications:message{Title = "Butter",Description = "Started Dupe, Wait!",Icon = 6023426926}

  3445. repeat

  3446. task.wait()

  3447. until game:GetService("ReplicatedStorage").LoadSaveRequests.ClientMayLoad:InvokeServer(game.Players.LocalPlayer)

  3448. task.wait()

  3449. task.spawn(function()

  3450. game:GetService("ReplicatedStorage").LoadSaveRequests.RequestLoad:InvokeServer(SlotNum, game.Players.LocalPlayer)

  3451. end)

  3452. repeat wait() until game.Players.LocalPlayer.PlayerGui.PropertyPurchasingGUI:WaitForChild("SelectPurchase").Visible == true

  3453. wait(0.5)

  3454. for m, c in ipairs(getconnections(game.Players.LocalPlayer.PlayerGui.PropertyPurchasingGUI.SelectPurchase:WaitForChild("Left").MouseButton1Click)) do

  3455. c.Function()

  3456. task.wait()

  3457. end

  3458. wait(0.1)

  3459. for m, c in ipairs(getconnections(game.Players.LocalPlayer.PlayerGui.PropertyPurchasingGUI.SelectPurchase:WaitForChild("Left").MouseButton1Click)) do

  3460. c.Function()

  3461. task.wait()

  3462. end

  3463. wait(0.25)

  3464. if MimirV then

  3465. FreeLand()

  3466. wait(0.5)

  3467. pcall(function()

  3468. local Dupehighlight = Instance.new("Highlight") Dupehighlight.Parent = GetPlot().OriginSquare GetPlot().OriginSquare.Color = Color3.fromRGB(255,0,0)

  3469. end)

  3470. end

  3471. local folder = game:GetService("Workspace").Effects.StructureModel

  3472. local children = folder:GetChildren()

  3473. local lastItem = children[#children - LITV]

  3474. local greenitem = lastItem.Name

  3475. local greenitemsize = (lastItem:FindFirstChild("Main") and lastItem.Main.Size) or (lastItem:FindFirstChild("WoodSection") and lastItem.WoodSection.Size) or (lastItem:FindFirstChild("BuildDependentWood") and lastItem.BuildDependentWood.Size)

  3476. print("Item to leave on:", greenitem)

  3477. print("Size:", greenitemsize)

  3478. wait(1)

  3479. local Added = game:GetService("Workspace").PlayerModels.ChildAdded:Connect(function(v)

  3480. if v:WaitForChild("Owner") and v.Owner.Value == game.Players.LocalPlayer then

  3481. if v.Name == greenitem then

  3482. if v:FindFirstChild("Main") then

  3483. if v.Main.Size == greenitemsize then

  3484. game:Shutdown()

  3485. end

  3486. elseif v:FindFirstChild("WoodSection") then

  3487. if v.WoodSection.Size == greenitemsize then

  3488. game:Shutdown()

  3489. end

  3490. end

  3491. elseif v:FindFirstChild("BuildDependentWood") then

  3492. if v.BuildDependentWood.Size == greenitemsize then

  3493. game:Shutdown()

  3494. end

  3495. end

  3496. end

  3497. end)

  3498. notifications:message{Title = "Mimir",Description = "Done Load in a base! NOT ON THE RED LAND!",Icon = 6023426926}

  3499. end

  3500. --#endregion

  3501. --#region Countitems

  3502. function Countitems()

  3503. function getItemInfo(name, itemType)

  3504. for _, item in ipairs(items) do

  3505. if item.name == name and item.type == itemType then

  3506. return item

  3507. end

  3508. end

  3509. return nil

  3510. end

  3511. function insertOrUpdateItem(name, itemType)

  3512. item = getItemInfo(name, itemType)

  3513. if not item then

  3514. table.insert(items, {name = name, amount = 1, type = itemType})

  3515. else

  3516. item.amount = item.amount + 1

  3517. end

  3518. end

  3519. local function processPlayerModel(playerModel)

  3520. main = playerModel:FindFirstChild("Main")

  3521. owner = playerModel:FindFirstChild("Owner")

  3522. itemName = playerModel:FindFirstChild("ItemName") or playerModel:FindFirstChild("PurchasedBoxItemName") or playerModel:FindFirstChild("TreeClass")

  3523. typeValue = playerModel:FindFirstChild("Type")

  3524. if main and owner and owner.Value == game.Players.LocalPlayer and typeValue then

  3525. local itemType = typeValue.Value == "Tool" and "Box" or typeValue.Value

  3526. insertOrUpdateItem(itemName.Value, itemType)

  3527. end

  3528. end

  3529. for _, playerModel in pairs(workspace.PlayerModels:GetChildren()) do

  3530. processPlayerModel(playerModel)

  3531. end

  3532. for _, item in pairs(items) do

  3533. print(item.name .. " : " .. tostring(item.amount) .. " as: " .. item.type)

  3534. end

  3535. end

  3536. --#endregion

  3537. --#region Axe Dupe

  3538. function AxeDupe(slot,timewait)

  3539. if not game:GetService("ReplicatedStorage").LoadSaveRequests.ClientMayLoad:InvokeServer(game.Players.LocalPlayer) then

  3540. notifications:message{Title = "WAIT!",Description = "Please wait :)",Icon = 6023426926}

  3541. repeat task.wait() until game:GetService("ReplicatedStorage").LoadSaveRequests.ClientMayLoad:InvokeServer(game.Players.LocalPlayer)

  3542. end

  3543. task.spawn(function()

  3544. game:GetService("ReplicatedStorage").LoadSaveRequests.RequestLoad:InvokeServer(slot,game:GetService("Players").LocalPlayer)

  3545. end)

  3546. task.wait(timewait)

  3547. workspace.Gravity = 10000000000000

  3548. plr = game.Players.LocalPlayer

  3549. hum = plr.Character.HumanoidRootPart

  3550. hum.CFrame = CFrame.new(x, -100, z)

  3551. local pos = Vector3.new(Coordinates)

  3552. local ts = game:GetService('TweenService')

  3553. local plr = game.Players.LocalPlayer

  3554. local Char = plr.Character or plr.CharacterAdded:wait()

  3555. local t = ts:create(Char.Humanoid.RootPart,TweenInfo.new(0.1 --[[ time ]]), {CFrame = CFrame.new(x,-280,z)} )

  3556. t:Play()

  3557. wait(2)

  3558. workspace.Gravity = 196.2

  3559. end

  3560. --#endregion

  3561. --#region Power dupe

  3562. function PowerDupe(Slotnum)

  3563. if not game:GetService("ReplicatedStorage").LoadSaveRequests.ClientMayLoad:InvokeServer(game.Players.LocalPlayer) then

  3564. notifications:message{Title = "WAIT!",Description = "Please wait :)",Icon = 6023426926}

  3565. repeat task.wait() until game:GetService("ReplicatedStorage").LoadSaveRequests.ClientMayLoad:InvokeServer(game.Players.LocalPlayer)

  3566. end

  3567. game:GetService("ReplicatedStorage").LoadSaveRequests.RequestLoad:InvokeServer(math.huge,Player)

  3568. wait(0.3)

  3569. repeat wait() until not Player.CurrentlySavingOrLoading.Value

  3570. FreeLand()

  3571. SetSlotTo(Slotnum)

  3572. wait(0.3)

  3573. game:GetService("ReplicatedStorage").LoadSaveRequests.RequestSave:InvokeServer(Slotnum,Player)

  3574. notifications:message{

  3575. Title = "Butter",

  3576. Description = "Powerdupe is done!",

  3577. Icon = 6023426926

  3578. }

  3579. end

  3580. --#endregion

  3581. --#region ModWood

  3582. local ModWoodOn = false

  3583. local worked = false

  3584. local treelimbblist = {}

  3585. local ModwoodConnection

  3586. local addedstuff

  3587. function ifworked()

  3588. worked = false

  3589. addedstuff = game:GetService("Workspace").LogModels.ChildAdded:Connect(function(v)

  3590. if v:WaitForChild("Owner") and v.Owner.Value == game.Players.LocalPlayer then

  3591. if v:WaitForChild("WoodSection") then

  3592. worked = true

  3593. end

  3594. end

  3595. end)

  3596. end

  3597. function ModWood()

  3598. SelectSawmill("Mod Wood")

  3599. repeat wait() until ModWoodSawmill

  3600. notifications:message{

  3601. Title = "Butter",

  3602. Description = "Click a tree",

  3603. Icon = 6023426926

  3604. }

  3605. ModWoodOn = true

  3606. if not ModWoodOn then return end

  3607. ModwoodConnection = game.Players.LocalPlayer:GetMouse().Button1Down:Connect(function()

  3608. local Clicked = game.Players.LocalPlayer:GetMouse().Target

  3609. if Clicked.Parent:FindFirstAncestor("LogModels") then

  3610. if Clicked.Parent:FindFirstChild("Owner") and Clicked.Parent.Owner.Value == game.Players.LocalPlayer then

  3611. for _,v in pairs(Clicked.Parent:GetDescendants()) do

  3612. if v.Name == 'ChildIDs' and #(v:GetChildren()) == 0 then

  3613. table.insert(treelimbblist, v.Parent.ID.Value)

  3614. end

  3615. end

  3616. table.sort(treelimbblist)

  3617. for _,v in pairs(Clicked.Parent:GetDescendants()) do

  3618. if v.Name == 'ChildIDs' then

  3619. for _,v2 in pairs(v:GetChildren()) do

  3620. if v2.Value == treelimbblist[#treelimbblist] then

  3621. parentbranch = v2.Parent.Parent

  3622. Instance.new("Highlight", parentbranch)

  3623. end

  3624. end

  3625. else

  3626. if v.Name == 'ID' and v.Value == treelimbblist[#treelimbblist] then

  3627. Instance.new("Highlight", v.Parent).FillColor = Color3.new(0, 1, 0)

  3628. childbranchId = treelimbblist[#treelimbblist]

  3629. childbranch = v.Parent

  3630. end

  3631. end

  3632. end

  3633. end

  3634. end

  3635. end)

  3636. repeat wait() until childbranch

  3637. local oldpos = game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame

  3638. local LavaPart = GetLava()

  3639. firstpart = childbranch.Parent:FindFirstChild("WoodSection")

  3640. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = firstpart.CFrame

  3641. wait(0.2)

  3642. repeat wait()

  3643. while not isnetworkowner(parentbranch) do

  3644. game.ReplicatedStorage.Interaction.ClientIsDragging:FireServer(parentbranch.Parent)

  3645. task.wait()

  3646. end

  3647. game.ReplicatedStorage.Interaction.ClientIsDragging:FireServer(parentbranch.Parent)

  3648. parentbranch:PivotTo(CFrame.new(-1425, 489, 1244))

  3649. firetouchinterest(parentbranch, LavaPart.Lava, 0)

  3650. firetouchinterest(parentbranch, LavaPart.Lava, 1)

  3651. until parentbranch:FindFirstChild('LavaFire')

  3652. ResizeBar(1,3)

  3653. firstpart = childbranch.Parent:FindFirstChild("WoodSection")

  3654. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = firstpart.CFrame

  3655. wait(0.3)

  3656. while not isnetworkowner(firstpart) do

  3657. game.ReplicatedStorage.Interaction.ClientIsDragging:FireServer(firstpart.Parent)

  3658. firstpart.Velocity = Vector3.new(0,0,0)

  3659. childbranch.Velocity = Vector3.new(0,0,0)

  3660. task.wait()

  3661. end

  3662. game.ReplicatedStorage.Interaction.ClientIsDragging:FireServer(firstpart.Parent)

  3663. firstpart:PivotTo(CFrame.new(-1055, 291, -458))

  3664. wait(0.3)

  3665. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = childbranch.CFrame * CFrame.new(5,0,0)

  3666. while not isnetworkowner(childbranch) do

  3667. game.ReplicatedStorage.Interaction.ClientIsDragging:FireServer(childbranch.Parent)

  3668. task.wait()

  3669. end

  3670. game.ReplicatedStorage.Interaction.ClientIsDragging:FireServer(childbranch.Parent)

  3671. childbranch:PivotTo(CFrame.new(-1055, 291, -458))

  3672. parentbranch:FindFirstChild('LavaFire'):Destroy()

  3673. parentbranch:FindFirstChild('BodyAngularVelocity'):Destroy()

  3674. parentbranch:FindFirstChild('BodyVelocity'):Destroy()

  3675. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = parentbranch.CFrame

  3676. wait(0.1)

  3677. repeat

  3678. game.ReplicatedStorage.Interaction.ClientIsDragging:FireServer(parentbranch.Parent)

  3679. parentbranch:PivotTo(CFrame.new(314.54, -0.5, 86.823))

  3680. task.wait()

  3681. until not parentbranch.Parent

  3682. ResizeBar(2,3)

  3683. firstpart = childbranch.Parent:FindFirstChild("WoodSection")

  3684. ifworked()

  3685. task.spawn(function()

  3686. repeat wait()

  3687. game.Players.LocalPlayer.Character.HumanoidRootPart.Velocity = Vector3.new(0,0,0)

  3688. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = firstpart.CFrame * CFrame.new(5,0,0)

  3689. until worked

  3690. end)

  3691. repeat wait() game:GetService("ReplicatedStorage").Interaction.RemoteProxy:FireServer(childbranch.Parent:FindFirstChild("CutEvent"), {["tool"] = GetBestAxe(Tree), ["faceVector"] = Vector3.new(1, 0, 0), ["height"] = 0.3, ["sectionId"] = 1,["hitPoints"] = GetAxeDamage(childbranch.Parent:FindFirstChild("TreeClass").Value), ["cooldown"] = 0.25837870788574, ["cuttingClass"] = "Axe"}) until worked

  3692. task.wait(0.3)

  3693. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = childbranch.CFrame * CFrame.new(5,0,0)

  3694. while not isnetworkowner(childbranch) do

  3695. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = childbranch.CFrame * CFrame.new(5,0,0)

  3696. game.ReplicatedStorage.Interaction.ClientIsDragging:FireServer(childbranch.Parent)

  3697. task.wait()

  3698. end

  3699. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = childbranch.CFrame * CFrame.new(5,0,0)

  3700. task.wait(0.2)

  3701. game.ReplicatedStorage.Interaction.ClientIsDragging:FireServer(childbranch.Parent)

  3702. task.wait(0.3)

  3703. childbranch:PivotTo(ModWoodSawmill.Particles.CFrame + Vector3.new(0, .5, 0))

  3704. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = oldpos

  3705. ResizeBar(3,3)

  3706. notifications:message{

  3707. Title = "Butter",

  3708. Description = "Done",

  3709. Icon = 6023426926

  3710. }

  3711. ModWoodOn = false

  3712. childbranch = nil

  3713. parentbranch = nil

  3714. worked = false

  3715. treelimbblist = {}

  3716. firstpart = nil

  3717. ModWoodSawmill = nil

  3718. addedstuff:Disconnect()

  3719. ModwoodConnection:Disconnect()

  3720. end

  3721. --#endregion

  3722. --#region 1x1 Mod wood

  3723. function smallmodwood()

  3724. for i,v in next, game:GetService("Workspace").PlayerModels:GetChildren() do

  3725. if v:FindFirstChild("Owner") and v:FindFirstChild("WoodSection") then

  3726. v.WoodSection.Size = Vector3.new(1, 1, 1)

  3727. end

  3728. end

  3729. end

  3730. --#endregion

  3731. --#region cam

  3732. camSprintKey = Enum.KeyCode.LeftShift

  3733. localPlayer = game.Players.LocalPlayer

  3734. Camera = game.Workspace.CurrentCamera

  3735. UserInputService = game:GetService("UserInputService")

  3736. movePosition = Vector2.new(0,0)

  3737. moveDirection = Vector3.new(0,0,0)

  3738. targetMovePosition = movePosition

  3739. Y_Sensitivity = 300;

  3740. X_Sensitivity = 300;

  3741. lastRightButtonDown = Vector2.new(0,0)

  3742. rightMouseButtonDown = false

  3743. targetFOV = 70

  3744. sprinting = false;

  3745. sprintingSpeed = 3;

  3746. keysDown = {}

  3747. moveKeys = {

  3748. [Enum.KeyCode.D] = Vector3.new(1,0,0),

  3749. [Enum.KeyCode.A] = Vector3.new(-1,0,0),

  3750. [Enum.KeyCode.S] = Vector3.new(0,0,1),

  3751. [Enum.KeyCode.W] = Vector3.new(0,0,-1),

  3752. --[Enum.KeyCode.E] = Vector3.new(0,1,0),

  3753. --[Enum.KeyCode.Q] = Vector3.new(0,-1,0)

  3754. }

  3755. Tweenn = function(a,b,d)

  3756. if t == 1 then

  3757. return b

  3758. else

  3759. if tonumber(a) then

  3760. return a * (1-d) + (b*d)

  3761. else

  3762. return a:Lerp(b,d);

  3763. end

  3764. end

  3765. end

  3766. ClampVector3 = function(x,min,max)

  3767. return

  3768. Vector3.new(

  3769. math.clamp(x.X,min.X,max.X),

  3770. math.clamp(x.Y,min.Y,max.Y),

  3771. math.clamp(x.Z,min.Z,max.Z)

  3772. )

  3773. end

  3774. UserInputService.InputChanged:connect(function(inputObject)

  3775. if inputObject.UserInputType == Enum.UserInputType.MouseMovement then

  3776. movePosition = movePosition + Vector2.new(inputObject.Delta.x,inputObject.Delta.y)

  3777. end

  3778. end)

  3779. CalculateMovement = function()

  3780. newMovement = Vector3.new(0,0,0)

  3781. for i,v in pairs(keysDown) do

  3782. newMovement = newMovement + (moveKeys[i] or Vector3.new(0,0,0))

  3783. end

  3784. return newMovement

  3785. end

  3786. Round = function(num, numDecimalPlaces)

  3787. return math.floor((num/numDecimalPlaces) + .5)*numDecimalPlaces

  3788. end

  3789. Input = function(input,gameProcessed)

  3790. if moveKeys[input.KeyCode] then

  3791. if input.UserInputState == Enum.UserInputState.Begin then

  3792. keysDown[input.KeyCode] = true

  3793. elseif input.UserInputState == Enum.UserInputState.End then

  3794. keysDown[input.KeyCode] = nil

  3795. end

  3796. else

  3797. if input.UserInputState == Enum.UserInputState.Begin then

  3798. if input.UserInputType == Enum.UserInputType.MouseButton2 then

  3799. rightMouseButtonDown = true

  3800. lastRightButtonDown = Vector2.new(Mouse.X,Mouse.Y)

  3801. UserInputService.MouseBehavior = Enum.MouseBehavior.LockCurrentPosition

  3802. elseif input.KeyCode == Enum.KeyCode.Z then

  3803. targetFOV = 20

  3804. elseif input.KeyCode == camSprintKey then

  3805. sprinting = true

  3806. end

  3807. else

  3808. if input.UserInputType == Enum.UserInputType.MouseButton2 then

  3809. rightMouseButtonDown = false

  3810. UserInputService.MouseBehavior = Enum.MouseBehavior.Default

  3811. elseif input.KeyCode == Enum.KeyCode.Z then

  3812. targetFOV = 70

  3813. elseif input.KeyCode == camSprintKey then

  3814. sprinting = false

  3815. end

  3816. end

  3817. end

  3818. end

  3819. Mouse.WheelForward:connect(function()

  3820. Camera.CoordinateFrame = Camera.CoordinateFrame * CFrame.new(0,0,-5)

  3821. end)

  3822. Mouse.WheelBackward:connect(function()

  3823. Camera.CoordinateFrame = Camera.CoordinateFrame * CFrame.new(-0,0,5)

  3824. end)

  3825. UserInputService.InputBegan:connect(Input)

  3826. UserInputService.InputEnded:connect(Input)

  3827. function camon()

  3828. Toggled = true

  3829. Camera.CameraType = Enum.CameraType.Scriptable

  3830. game.Players.LocalPlayer.Character.Humanoid.PlatformStand = true

  3831. end

  3832. function camoff()

  3833. Toggled = false

  3834. game.Players.LocalPlayer.Character.Humanoid.PlatformStand = false

  3835. game.Workspace.CurrentCamera.CameraSubject = game.Players.LocalPlayer.Character.Humanoid

  3836. game.Workspace.CurrentCamera.CameraType = "Custom"

  3837. end

  3838. game:GetService("RunService").RenderStepped:Connect(function()

  3839. if Toggled then

  3840. mouseTarget = Mouse.Hit

  3841. targetMovePosition = movePosition

  3842. Camera.CoordinateFrame = CFrame.new(Camera.CoordinateFrame.p) * CFrame.fromEulerAnglesYXZ(-targetMovePosition.Y/Y_Sensitivity ,-targetMovePosition.X/X_Sensitivity, 0) * CFrame.new(CalculateMovement() * ((({[true]=sprintingSpeed})[sprinting]) or .5) )

  3843. Camera.FieldOfView = Tweenn(Camera.FieldOfView,targetFOV,.5)

  3844. if rightMouseButtonDown then

  3845. UserInputService.MouseBehavior = Enum.MouseBehavior.LockCurrentPosition

  3846. movePosition = movePosition - (lastRightButtonDown - Vector2.new(Mouse.X,Mouse.Y))

  3847. lastRightButtonDown = Vector2.new(Mouse.X,Mouse.Y)

  3848. end

  3849. end

  3850. end)

  3851. --#endregion

  3852. --#region Fix Names

  3853. function fixnames()

  3854. for i,v in pairs(game:GetService("Workspace").PlayerModels:GetDescendants()) do

  3855. if v.Name == "Model" and v:FindFirstChild("ItemName") then

  3856. v.Name = v.ItemName.Value

  3857. end

  3858. end

  3859. end

  3860. --#endregion

  3861. --#endregion

  3862. --#region Save stuff

  3863. local HttpService = game:GetService("HttpService")

  3864. local userinfo = {}

  3865. local configsuccess, result = pcall(function()

  3866. userinfo = HttpService:JSONDecode(readfile("Butterv1.lua"))

  3867. end)

  3868. local rgbthin = userinfo["rgbthin"] or false

  3869. local keytoc = userinfo["keytoc"] or "RightShift"

  3870. local flykey = userinfo["flykey"] or "Q"

  3871. local daystuff = userinfo["daystuff"] or false

  3872. local nofogst = userinfo["nofogst"] or false

  3873. local Flystuff = userinfo["Flystuff"] or false

  3874. local FlySpeed = userinfo["FlySpeed"] or 150

  3875. local SprintSpeednums = userinfo["SprintSpeednums"] or 65

  3876. local Fovnum = userinfo["Fovnum"] or 70

  3877. local TheR = userinfo["TheR"] or 0

  3878. local TheG = userinfo["TheG"] or 255

  3879. local TheB = userinfo["TheB"] or 255

  3880. if configsuccess then

  3881. print("Configuration loaded successfully.")

  3882. else

  3883. print("Configuration file error. Fixing...")

  3884. if isfile("Butterv1.lua") then

  3885. delfile("Butterv1.lua")

  3886. end

  3887. task.wait()

  3888. writefile("Butterv1.lua", HttpService:JSONEncode(userinfo))

  3889. end

  3890. function SaveSettings()

  3891. userinfo["rgbthin"] = rgbthin

  3892. userinfo["keytoc"] = keytoc

  3893. userinfo["flykey"] = flykey

  3894. userinfo["daystuff"] = daystuff

  3895. userinfo["nightstuff"] = nightstuff

  3896. userinfo["nofogst"] = nofogst

  3897. userinfo["Flystuff"] = Flystuff

  3898. userinfo["FlySpeed"] = FlySpeed

  3899. userinfo["SprintSpeednums"] = SprintSpeednums

  3900. userinfo["TheR"] = TheR

  3901. userinfo["TheG"] = TheG

  3902. userinfo["TheB"] = TheB

  3903. userinfo["Fovnum"] = Fovnum

  3904. writefile("Butterv1.lua", HttpService:JSONEncode(userinfo))

  3905. end

  3906. GameMenuTheme(Color3.fromRGB(25, 25, 25), Color3.fromRGB(TheR,TheG,TheB))

  3907. --#region Green thing

  3908. workspace.Effects.ChildAdded:Connect(function(child)

  3909. if child:IsA("Model") and child.Name == "StructureModel" then

  3910. for i,v in pairs(child:GetDescendants()) do

  3911. if v:IsA("BasePart") then

  3912. v.Color = Color3.fromRGB(TheR, TheG, TheB)

  3913. end

  3914. end

  3915. end

  3916. end)

  3917. workspace.DescendantAdded:Connect(function(v)

  3918. if v.Name == "Cut" then

  3919. v.Color = Color3.fromRGB(TheR, TheG, TheB)

  3920. end

  3921. end)

  3922. --#endregion

  3923. --#region Set Cord

  3924. function SetCordFun()

  3925. local SetCordval = Instance.new("Part")

  3926. SetCordval.Name = "Cords"

  3927. SetCordval.Anchored = true

  3928. SetCordval.CanCollide = false

  3929. SetCordval.Transparency = 0

  3930. SetCordval.Shape = "Ball"

  3931. SetCordval.Material = "Air"

  3932. SetCordval.Size = Vector3.new(3,3,3)

  3933. SetCordval.Color = Color3.fromRGB(TheR, TheG, TheB)

  3934. SetCordval.Position = game.Players.LocalPlayer.Character:FindFirstChild("HumanoidRootPart").CFrame.p

  3935. SetCordval.Parent = workspace

  3936. end

  3937. --#endregion

  3938. --#region Slot Names

  3939. if not isfile('ButtersSlotNames.cfg') then

  3940. local DefaultSlotNames = {}

  3941. DefaultSlotNames[tostring(Player)] = {

  3942. Slot1Val = 'Slot 1',

  3943. Slot2Val = 'Slot 2',

  3944. Slot3Val = 'Slot 3',

  3945. Slot4Val = 'Slot 4',

  3946. Slot5Val = 'Slot 5',

  3947. Slot6Val = 'Slot 6'

  3948. }

  3949. writefile('ButtersSlotNames.cfg', HttpService:JSONEncode(DefaultSlotNames))

  3950. end

  3951. local ButtersSlotNames = HttpService:JSONDecode(readfile('ButtersSlotNames.cfg'))

  3952. local DoesPlayerExist = ButtersSlotNames[tostring(Player)] ~= nil

  3953. if not DoesPlayerExist then

  3954. local DefaultSlotNames = {}

  3955. DefaultSlotNames = {

  3956. Slot1Val = 'Slot 1',

  3957. Slot2Val = 'Slot 2',

  3958. Slot3Val = 'Slot 3',

  3959. Slot4Val = 'Slot 4',

  3960. Slot5Val = 'Slot 5',

  3961. Slot6Val = 'Slot 6'

  3962. }

  3963. local SlotNamesOld = HttpService:JSONDecode(readfile('ButtersSlotNames.cfg'))

  3964. SlotNamesOld[tostring(Player)] = DefaultSlotNames

  3965. writefile('ButtersSlotNames.cfg', HttpService:JSONEncode(SlotNamesOld))

  3966. end

  3967. local SlotNamesOld = HttpService:JSONDecode(readfile('ButtersSlotNames.cfg'))

  3968. --#endregion

  3969. --#region Hard Dragger

  3970. function Dragger()

  3971. game.Workspace.ChildAdded:connect(function(a)

  3972. if a.Name == "Dragger" then

  3973. a.Color = Color3.fromRGB(TheR, TheG, TheB)

  3974. local bg = a:WaitForChild("BodyGyro")

  3975. local bp = a:WaitForChild("BodyPosition")

  3976. repeat

  3977. if CustomDragger then

  3978. task.wait()

  3979. bp.P = 120000

  3980. bp.D = 1000

  3981. bp.maxForce = Vector3.new(math.huge,math.huge,math.huge)

  3982. bg.maxTorque = Vector3.new(math.huge, math.huge, math.huge)

  3983. else

  3984. wait()

  3985. bp.P = 10000

  3986. bp.D = 800

  3987. bp.maxForce = Vector3.new(17000, 17000, 17000)

  3988. bg.maxTorque = Vector3.new(200, 200, 200)

  3989. end

  3990. until not a

  3991. end

  3992. end)

  3993. end

  3994. --#endregion

  3995. SaveSettings()

  3996. --#endregion

  3997. --#region UI

  3998. if getgenv().gay then NameT = "Butter│Admin" else NameT = "Butter" end

  3999. local ui = library:new(NameT)

  4000. local Home = ui:Tab('Home','6035145364')

  4001. local Player = ui:Tab('Player','6034287594')

  4002. local WorldTab = ui:Tab('World','6034287522')

  4003. local AutoBuyg = ui:Tab('Auto Buy','6031265983') -- had to put a G

  4004. local DupeTab = ui:Tab('Dupe','6035053278')

  4005. local Slot = ui:Tab('Slot','6034333276')

  4006. local WoodTab = ui:Tab('Wood','6034503369')

  4007. local AutoBuild = ui:Tab('AutoFill','6035067834')

  4008. local ItemTab = ui:Tab('Item','11145825488')

  4009. local Sortertab = ui:Tab('Sorter','11145825488')

  4010. local Vehicle = ui:Tab('Vehicle','6034754441')

  4011. local Trollingtab = ui:Tab('Trolling','6034687957')

  4012. local Settingtab = ui:Tab('Settings','6031280882')

  4013. --#region section tab

  4014. local Home1 = Home:section('Credits',true)

  4015. local Home2 = Home:section('Settings',true)

  4016. local Player1 = Player:section('Movement',true)

  4017. local Player2 = Player:section('Misc',true)

  4018. --local AutoBuild1 = AutoBuild:section('Save Build',true)

  4019. --local AutoBuild5 = AutoBuild:section('Load Build',true)

  4020. local AutoBuild2 = AutoBuild:section('Studio Build ',true)

  4021. local AutoBuild3 = AutoBuild:section('Build',true)

  4022. local AutoBuild4 = AutoBuild:section('Build Help',true)

  4023. local WorldTab0 = WorldTab:section('Teleports',true)

  4024. local WorldTab1 = WorldTab:section('World',true)

  4025. local WorldTab2 = WorldTab:section('Water',true)

  4026. local Slot1 = Slot:section('Fast load',true)

  4027. local Slot2 = Slot:section('slot',true)

  4028. local Slot3 = Slot:section('Land Claim',true)

  4029. local Vehicle1 = Vehicle:section('Vehicle',true)

  4030. local Vehicle2 = Vehicle:section('Vehicle Spawner',true)

  4031. local Dupetab01 = DupeTab:section('Mimir Dupe',true)

  4032. local Dupetab02 = DupeTab:section('Old Mimir Dupe',true)

  4033. local Dupetab0 = DupeTab:section('Time Dupe',true)

  4034. local Dupetab1 = DupeTab:section('AxeDupe',true)

  4035. local Dupetab2 = DupeTab:section('PowerDupe',true)

  4036. local Dupetab3 = DupeTab:section('SoldSign Dupe',true)

  4037. local Trollingtab1 = Trollingtab:section('Trolling',true)

  4038. local ItemTab1 = ItemTab:section('Teleport',true)

  4039. local ItemTab2 = ItemTab:section('Options',true)

  4040. local Sortertab1 = Sortertab:section('Sorter',true)

  4041. local Autobuy1 = AutoBuyg:section('AutoBuy',true)

  4042. local Autobuy2 = AutoBuyg:section('Buying Misc',true)

  4043. local Woodtab1 = WoodTab:section('Get tree',true)

  4044. local Woodtab2 = WoodTab:section('Tree',true)

  4045. local Woodtab3 = WoodTab:section('Mod stuff',true)

  4046. local Woodtab4 = WoodTab:section('Tree help',true)

  4047. local Settingtab1 = Settingtab:section('Config',true)

  4048. local Settingtab2 = Settingtab:section('Colors',true)

  4049. local Settingtab3 = Settingtab:section('Slot Names',true)

  4050. --#endregion

  4051. --#endregion

  4052. --#region Home

  4053. local Label = Home1:Label("Leader/Maker of project Kissbox.")

  4054. local Label = Home1:Label("ALL of the developers that helped Butter")

  4055. local Label = Home1:Label("Applebox, silentben8x, tip,")

  4056. local Label = Home1:Label("Made sorter/helped with Mod wood")

  4057. local Label = Home1:Label("billybob123")

  4058. local Label = Home1:Label("Beta testers Gamer,")

  4059. Home2:Toggle('Glow', '', rgbthin, function(Value)

  4060. if Value == "" then

  4061. glow.Visible = true

  4062. else

  4063. rgbthin = Value

  4064. glow.Visible = Value

  4065. SaveSettings()

  4066. end

  4067. end)

  4068. if rgbthin == false then

  4069. glow.Visible = false

  4070. end

  4071. Home2:Keybind("Toggle UI", Enum.KeyCode[keytoc], function(Value)

  4072. keytoc = Value

  4073. ToggleUILib()

  4074. SaveSettings()

  4075. end)

  4076. Home2:Button('Rejoin', function()

  4077. game:GetService("TeleportService"):Teleport(game.PlaceId,game:GetService("Players").LocalPlayer)

  4078. end)

  4079. Home2:Button('Server Hop', function()

  4080. loadstring(game:HttpGet('https://raw.githubusercontent.com/Butterisgood/Butter/main/ServerHop.txt'))()

  4081. end)

  4082. glowong()

  4083. --#endregion

  4084. --#region Player tab

  4085. getgenv().ison = true

  4086. Nspeed = 16

  4087. NSspeed = 65

  4088. Player1:Slider('Walkspeed', 'WalspeedSlider', 16, 16, 250,false, function(Value)

  4089. if getgenv().ison == true then

  4090. Nspeed = Value

  4091. getgenv().Speed = Value

  4092. Walkspeed()

  4093. else

  4094. getgenv().SprintSpeed = getgenv().Speed

  4095. Nspeed = Value

  4096. getgenv().Speed = Value

  4097. Walkspeed()

  4098. end

  4099. end)

  4100. getgenv().SprintSpeed = SprintSpeednums

  4101. SprintSpeedsets = Player1:Slider('SprintSpeed', 'SSpeed', SprintSpeednums, 16, 250,false, function(Value)

  4102. SprintSpeednums = Value

  4103. NSspeed = Value

  4104. if getgenv().ison == false then

  4105. else

  4106. getgenv().SprintSpeed = Value

  4107. end

  4108. end)

  4109. SprintSpeedsets:SetValue(SprintSpeednums)

  4110. local userInput = game:GetService("UserInputService")

  4111. local function beginSprint(input, gameProcessed)

  4112. if not gameProcessed then

  4113. if input.UserInputType == Enum.UserInputType.Keyboard then

  4114. local keycode = input.KeyCode

  4115. if keycode == Enum.KeyCode.LeftShift then

  4116. if not game:GetService("Players").LocalPlayer.PlayerGui.ItemDraggingGUI.CanRotate.Visible then

  4117. getgenv().Speed = getgenv().SprintSpeed

  4118. Walkspeed()

  4119. else

  4120. getgenv().Speed = 0

  4121. Walkspeed()

  4122. end

  4123. end

  4124. end

  4125. end

  4126. end

  4127. local function endSprint(input, gameProcessed)

  4128. if not gameProcessed then

  4129. if input.UserInputType == Enum.UserInputType.Keyboard then

  4130. local keycode = input.KeyCode

  4131. if keycode == Enum.KeyCode.LeftShift then

  4132. getgenv().Speed = Nspeed

  4133. Walkspeed()

  4134. end

  4135. end

  4136. end

  4137. end

  4138. userInput.InputBegan:Connect(beginSprint)

  4139. userInput.InputEnded:Connect(endSprint)

  4140. Player1:Slider('Jump Power', 'JumpPowerSlider', 50, 50, 1000,false, function(Value)

  4141. JumpPower(Value)

  4142. end)

  4143. maxspeed = FlySpeed

  4144. flyspeedsets = Player1:Slider('Flight Speed', 'Flight Slider', FlySpeed, 50, 250, false, function(Value)

  4145. maxspeed = Value

  4146. FlySpeed = Value

  4147. SaveSettings()

  4148. end)

  4149. flyspeedsets:SetValue(FlySpeed)

  4150. game:GetService'Workspace'.Camera.FieldOfView = Fovnum

  4151. Player1:Slider('FOV', '', Fovnum, 70, 250, false, function(Value)

  4152. game:GetService'Workspace'.Camera.FieldOfView = Value

  4153. Fovnum = Value

  4154. SaveSettings()

  4155. end)

  4156. Player1:Toggle('Sprint', '', true, function(Value)

  4157. getgenv().ison = Value

  4158. if not Value then

  4159. getgenv().SprintSpeed = Nspeed

  4160. end

  4161. if Value then

  4162. getgenv().SprintSpeed = NSspeed

  4163. end

  4164. end)

  4165. FlyingEnabled = Flystuff

  4166. Player1:Toggle('Flight' ,'', Flystuff, function(Value)

  4167. if Value == "" then

  4168. FlyingEnabled = true

  4169. else

  4170. Flystuff = Value

  4171. FlyingEnabled = Value

  4172. SaveSettings()

  4173. end

  4174. end)

  4175. Player1:Toggle('Infinite Jump', 'infj', false, function(Value)

  4176. InfiniteJump(Value)

  4177. end)

  4178. Flyingkey = flykey

  4179. Player1:Keybind("Flight keybind", Enum.KeyCode[flykey], function(Value)

  4180. flykey = Value

  4181. Flyingkey = string.lower(Value)

  4182. SaveSettings()

  4183. end)

  4184. Player1:Toggle('NoClip', '', false, function(Value)

  4185. NoClip(Value)

  4186. end)

  4187. Player2:Toggle('Anti AFK', '', true, function(Value)

  4188. AntiAFK(Value)

  4189. end)

  4190. Player2:Toggle('Light', '', false, function(Value)

  4191. Light(Value)

  4192. end)

  4193. Player2:Button('Safe death', function()

  4194. workspace.Gravity = 100000

  4195. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = axepart.CFrame

  4196. workspace.Gravity = 196.2

  4197. end)

  4198. Player2:Toggle('Custom Dragger', '', false, function(Value)

  4199. CustomDragger = Value

  4200. end)

  4201. Dragger()

  4202. Player2:Button('BTools', function()

  4203. BTools()

  4204. end)

  4205. --#endregion

  4206. --#region World Tab

  4207. --#region Lighting Change

  4208. game.Lighting.Changed:Connect(function()

  4209. if AlwaysDay then

  4210. if AlwaysNight then return end

  4211. game.Lighting.TimeOfDay = "12:00:00"

  4212. game.Lighting.SunPos.Value = 1

  4213. game:GetService("Lighting").Ambient = Color3.new(1, 1, 1)

  4214. game:GetService("Lighting").ColorShift_Bottom = Color3.new(1, 1, 1)

  4215. game:GetService("Lighting").ColorShift_Top = Color3.new(1, 1, 1)

  4216. end

  4217. if AlwaysNight then

  4218. if AlwaysDay then return end

  4219. game.Lighting.TimeOfDay = "00:00:00"

  4220. game.Lighting.SunPos.Value = -1

  4221. end

  4222. if NoFog then

  4223. game.Lighting.FogEnd = 100000

  4224. end

  4225. end)

  4226. --#endregion

  4227. --#region Teleports tab

  4228. WorldTab0:Dropdown("Teleport to waypoints", "Select...", {"The Den", "Lighthouse", "Safari", "Bridge", "Bob's Shack", "EndTimes Cave", "The Swamp", "The Cabin", "Volcano", "Boxed Cars", "Tiaga Peak", "Land Store", "Link's Logic", "Palm Island", "Palm Island 2", "Palm Island 3", "Fine Art Shop", "SnowGlow Biome", "Cave", "Shrine Of Sight", "Fancy Furnishings", "Docks", "Strange Man", "Wood Dropoff", "Snow Biome", "Wood RUs", "Green Box", "Spawn", "Cherry Meadow", "Bird Cave",}, function(Value)

  4229. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = WaypointsPositions[Value]

  4230. return

  4231. end)

  4232. dropdownTTP = WorldTab0:Dropdown("Teleport to Player", "Select...", playerList, function(Value)

  4233. TeleportToPlayer(Value)

  4234. end)

  4235. dropdownTTPB = WorldTab0:Dropdown("Teleport to Player Base", "Select...", playerList, function(Value)

  4236. TeleportToBase(Value)

  4237. end)

  4238. --#endregion

  4239. --#region day, Night and no fog

  4240. AlwaysDay = daystuff

  4241. NoFog = nofogst

  4242. daythin = WorldTab1:Toggle('Day', '', daystuff, function(Value)

  4243. if Value == "" then

  4244. AlwaysDay = true

  4245. else

  4246. daystuff = Value

  4247. AlwaysDay = Value

  4248. SaveSettings()

  4249. end

  4250. end)

  4251. WorldTab1:Toggle('Night', '', false, function(Value)

  4252. AlwaysNight = Value

  4253. end)

  4254. WorldTab1:Toggle('No Fog', '', nofogst, function(Value)

  4255. if Value == "" then

  4256. NoFog = true

  4257. else

  4258. nofogst = Value

  4259. NoFog = Value

  4260. SaveSettings()

  4261. end

  4262. end)

  4263. --#endregion

  4264. --#region other

  4265. WorldTab1:Toggle('Shadows', '', true, function(Value)

  4266. game:GetService("Lighting").GlobalShadows = Value

  4267. end)

  4268. WorldTab1:Toggle('Bridge', '', false, function(Value)

  4269. BridgeDown(Value)

  4270. end)

  4271. WorldTab1:Button('Better Graphics', function()

  4272. BetterG()

  4273. end)

  4274. WorldTab2:Button('Better Water', function()

  4275. for i,v in next, game.Workspace:GetDescendants() do

  4276. if v:IsA("Part") and v.Name == "SeaSand" then

  4277. v.Size = Vector3.new(2048, 60, 2048)

  4278. end

  4279. end

  4280. for i,v in next, game.Workspace:GetDescendants() do

  4281. if v:IsA("Part") and v.Name == "Water" then

  4282. v.Size = Vector3.new(20480, 6, 20080)

  4283. game.Workspace.Terrain:fillBlock(v.CFrame, v.Size, Enum.Material.Water)

  4284. v:Destroy()

  4285. end

  4286. end

  4287. end)

  4288. WorldTab2:Toggle('Walk On Water', '', false, function(Value)

  4289. WalkOnWater(Value)

  4290. end)

  4291. WorldTab2:Toggle('Remove Water', '', false, function(Value)

  4292. RemoveWater(Value)

  4293. end)

  4294. --#endregion

  4295. --#endregion

  4296. --#region Slot tab

  4297. slottt = Slot1:Slider('Slot Number', '', 1, 1, 6,false, function(Value)

  4298. slot2NUM = Value

  4299. end)

  4300. skil = Slot1:Toggle('Fast Load', '', false, function(state)

  4301. skipLoading = state

  4302. end)

  4303. Slot1:Button('Load Base', function()

  4304. LoadSlot(slot2NUM)

  4305. end)

  4306. Slot2:Button('Free Land', function()

  4307. FreeLand()

  4308. end)

  4309. Slot2:Button('Max Land', function()

  4310. MaxLand()

  4311. end)

  4312. Slot2:Toggle('LandArt', '', false, function(Value)

  4313. LandArt(Value)

  4314. end)

  4315. Slot2:Button('Sell Sold Sign', function()

  4316. SellSoldSign()

  4317. end)

  4318. Slot3:Dropdown("Select Land", "Select...", {"1", "2", "3", "4", "5", "6", "7", "8","9",}, function(Value)

  4319. if LandPart and Dupehighlight then

  4320. pcall(function()

  4321. LandPart.Highlight:Destroy()

  4322. end)

  4323. end

  4324. landToTake = tonumber(Value)

  4325. LandPart = workspace.Properties:GetChildren()[landToTake].OriginSquare

  4326. Dupehighlight = Instance.new("Highlight") Dupehighlight.Parent = LandPart Dupehighlight.FillColor = Color3.fromRGB(0,255,0)

  4327. end)

  4328. Slot3:Button('Take Land', function()

  4329. game:GetService("ReplicatedStorage").PropertyPurchasing.ClientPurchasedProperty:FireServer(LandPart.Parent,LandPart.Position) game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = LandPart.CFrame + Vector3.new(0,2,0)

  4330. wait(0.3)

  4331. LandPart.Highlight:Destroy()

  4332. end)

  4333. --#endregion

  4334. --#region AutoBuild tab

  4335. --AutoBuild0:Button('Load Preview', function()

  4336. --end)

  4337. --AutoBuild0:Button('Unload Preview', function()

  4338. --end)

  4339. --[[dropdownCPP = AutoBuild1:Dropdown("Player Copy", "Select...", playerList, function(Value)

  4340. PlayerCopy = Value

  4341. end)

  4342. AutoBuild1:Textbox('File name', '', "", function(Value)

  4343. FileName = Value

  4344. end)

  4345. AutoBuild1:Button('Make File', function()

  4346. CopyBase(FileName,PlayerCopy)

  4347. end)

  4348. AutoBuild5:Textbox('File name', '', "", function(Value)

  4349. FileName2 = Value

  4350. end)

  4351. AutoBuild5:Button('Load File', function()

  4352. LoadBaseFile(FileName2)

  4353. end)--]]

  4354. AutoBuild2:Button('Load Preview', function()

  4355. LoadPreview()

  4356. end)

  4357. AutoBuild2:Button('Build Preview', function()

  4358. fillPreviewsWithColors(0.3)

  4359. end)

  4360. AutoBuild2:Button('Unload Preview', function()

  4361. PreviewF:ClearAllChildren()

  4362. end)

  4363. AutoBuild3:Toggle('Lasso Wood tool', '', false, function(Value)

  4364. getgenv().isonlooze = Value

  4365. lassoTpcheck()

  4366. end)

  4367. AutoBuild3:Toggle('Automatically get the best speed', '', false, function(Value)

  4368. WoodTPspeed = GetPing()

  4369. end)

  4370. AutoBuild3:Slider('Speed', '', 0.3, 0.1, 1,true, function(Value)

  4371. WoodTPspeed = Value

  4372. end)

  4373. WoodTPspeed = 0.3

  4374. dropdownABP = AutoBuild3:Dropdown("Player", "Select...", playerList, function(Value)

  4375. APlayer = Value

  4376. end)

  4377. APlayer = game:GetService("Players").LocalPlayer.Name

  4378. AutoBuild3:Button('Fill Blueprints', function()

  4379. SelectionTpWOOD(WoodTPspeed,APlayer)

  4380. end)

  4381. AutoBuild3:Button("Deselect items", function()

  4382. delallselections()

  4383. end)

  4384. AutoBuild4:Toggle('Select tool', '', false, function(Value)

  4385. getgenv().GetBPs = Value

  4386. getgenv().isonlooze = Value

  4387. lassoTpcheck()

  4388. end)

  4389. AutoBuild4:Button("Deselect items", function()

  4390. delallselections()

  4391. end)

  4392. AutoBuild4:Button("Destroy items", function()

  4393. Destroybp()

  4394. end)

  4395. --#endregion

  4396. --#region Vehicle tab

  4397. Vehicle1:Slider('Vehicle speed', '', 1, 1, 10,false, function(Value)

  4398. VehicleSpeed(Value)

  4399. end)

  4400. dropdownTVTP = Vehicle1:Dropdown('Teleport Vehicle to Player', "Select...", playerList, function(v)

  4401. carTP(v.Character.HumanoidRootPart.CFrame)

  4402. end)

  4403. dropdownTVTPP = Vehicle1:Dropdown("Teleport Vehicle to Player's Plot", "Select...", playerList, function(ve)

  4404. for i,v in next, game:GetService("Workspace").Properties:GetChildren() do

  4405. if v:FindFirstChild("Owner") then

  4406. if v.Owner.Value == ve then

  4407. carTP(v.OriginSquare.CFrame)

  4408. end

  4409. end

  4410. end

  4411. end)

  4412. Vehicle1:Toggle('Vehicle Fly', '', false, function(v)

  4413. if v == true then

  4414. player = game.Players.LocalPlayer

  4415. humanoid = player.Character.Humanoid

  4416. if humanoid.Seated then

  4417. local CurrentSeat = player.Character.Humanoid.SeatPart

  4418. if CurrentSeat and CurrentSeat.Parent.Type.Value == "Vehicle" then

  4419. NOFLY()

  4420. wait()

  4421. sFLY(true)

  4422. end

  4423. end

  4424. else

  4425. NOFLY()

  4426. end

  4427. end)

  4428. Vehicle1:Slider('Vehicle Fly Speed', '', 16, 16, 250,false, function(v)

  4429. iyflyspeed = v

  4430. vehicleflyspeed = v

  4431. end)

  4432. Vehicle2:Dropdown('Car Colors', "Select...", {"Medium stone grey","Sand green","Sand red","Faded green","Dark grey metallic","Dark grey","Earth yellow","Earth orange","Silver","Brick yellow","Dark red","Hot pink",}, function(Value)

  4433. SelectedSpawnColor = tostring(Value)

  4434. return

  4435. end)

  4436. Vehicle2:Button('Start Vehicle Spawner', function()

  4437. notifications:message{

  4438. Title = "Butter",

  4439. Description = "butter",

  4440. Icon = 6023426926

  4441. }

  4442. VehicleSpawner(SelectedSpawnColor)

  4443. end)

  4444. Vehicle2:Button('Abort Vehicle Spawner', function()

  4445. AbortVehicleSpawner = true

  4446. end)

  4447. --#endregion

  4448. --#region Item TP(s)

  4449. --ItemTab1:Slider('Items speed', '', 10, 10, 35,false, function(Value)

  4450. --SelectionNUM = Value

  4451. --end)

  4452. --SelectionNUM = 10

  4453. ItemTab1:Toggle('Lasso tool', '', false, function(Value)

  4454. getgenv().isonlooze = Value

  4455. lassoTpcheck()

  4456. end)

  4457. ItemTab1:Toggle('Selection tool', '', false, function(Value)

  4458. getgenv().selectionv2 = Value

  4459. selectionv2(DropOwner)

  4460. end)

  4461. ItemTab1:Toggle('Item click to teleport', '', false, function(Value)

  4462. ClickTp = Value

  4463. ClickToTP()

  4464. end)

  4465. ItemTab1:Slider('Speed', '', 0.3, 0.1, 0.5,true, function(Value)

  4466. tpitemspeedV = Value

  4467. end)

  4468. ItemTab1:Toggle('Set coordinates', '', false, function(Value)

  4469. cordisset = Value

  4470. if Value then if Workspace:FindFirstChild("Cords") then Workspace.Cords:Destroy() end SetCordFun() else Workspace.Cords:Destroy() end

  4471. end)

  4472. ItemTab1:Button("Teleport Selected Item(s)", function()

  4473. if cordisset then SelectionTp(tpitemspeedV,"Upwards",Workspace.Cords) else SelectionTp(tpitemspeedV,"Upwards",game:GetService("Players").LocalPlayer.Character.HumanoidRootPart) end

  4474. end)

  4475. DropOwner = game.Players.LocalPlayer.Character.Name

  4476. ItemTab1:Button("Deselect items", function()

  4477. delallselections()

  4478. end)

  4479. ItemTab2:Button("Countitems", function()

  4480. notifications:message{

  4481. Title = "Butter",

  4482. Description = "Prees F9 to see results.",

  4483. Icon = 6023426926

  4484. }

  4485. Countitems()

  4486. end)

  4487. getgenv().whendonetp = true

  4488. ItemTab2:Toggle('Teleport to item when done', '', true, function(Value)

  4489. getgenv().whendonetp = Value

  4490. end)

  4491. dropdownIO = ItemTab2:Dropdown('Item Owner', "Select...", playerList, function(Value)

  4492. DropOwner = Value

  4493. end)

  4494. ItemTab2:Button("Make All wood 1x1", function()

  4495. smallmodwood()

  4496. end)

  4497. ItemTab2:Button("Sell selected", function()

  4498. SelectionTp(0.5,"Sideways")

  4499. end)

  4500. --#endregion

  4501. --#region Sort

  4502. Sortertab1:Slider('Length', '', 1, 1, 15,false, function(Value)

  4503. XXXSort = Value

  4504. end)

  4505. Sortertab1:Slider('Height', '', 1, 1, 15,false, function(Value)

  4506. YYYSort = Value

  4507. end)

  4508. Sortertab1:Slider('Width', '', 1, 1, 15,false, function(Value)

  4509. ZZZSort = Value

  4510. end)

  4511. Sortertab1:Slider('Speed', '', 0.3, 0.1, 0.5,true, function(Value)

  4512. TimesSort = Value

  4513. end)

  4514. Sortertab1:Toggle('Fast Teleport', '', false, function(Value)

  4515. MikeTp = Value

  4516. end)

  4517. if getgenv().gay then

  4518. Sortertab1:Toggle('Admin Teleport', '', false, function(Value)

  4519. NRTP = Value

  4520. end)

  4521. end

  4522. NRTP = false

  4523. MikeTp = false

  4524. sortPlayer = game.Players.LocalPlayer.Character.Name

  4525. dropdownSP = Sortertab1:Dropdown("Player", "Select...", playerList, function(Value)

  4526. sortPlayer = Value

  4527. end)

  4528. getgenv().sortsortcancel = false

  4529. Sortertab1:Button("Stop", function()

  4530. getgenv().sortsortcancel = true

  4531. end)

  4532. sortTPspeed = 0.1

  4533. TimesSort = 0.3

  4534. local Label = Sortertab1:Label("Butters")

  4535. function sort()

  4536. XXSort = XXXSort YYSort = YYYSort ZZSort = ZZZSort

  4537. local partsorting, RRSort, sortstate, sortbox = nil, 0, 1 ,nil local tests = {} getgenv().sortsortcancel = false

  4538. SortDown = Mouse.Button1Down:connect(function()

  4539. SortSelection = Instance.new("SelectionBox")

  4540. if not Mouse.Target then return end

  4541. if sortstate== 1 and tostring(Mouse.Target) == "Square" then return end

  4542. if sortstate == 1 and Mouse.Target.Name == "Main" or Mouse.Target.Name == "Cylinder" or Mouse.Target.Name == "WoodSection" then

  4543. ItemNameVal = Mouse.Target.Name

  4544. partsorting = Mouse.Target

  4545. if partsorting.Parent:FindFirstChild("ItemName") and not NRTP then

  4546. FastTP = true

  4547. else

  4548. FastTP = false

  4549. end

  4550. if MikeTp then

  4551. FastTP = false

  4552. end

  4553. SortSelection.Color3 = Color3.fromRGB(TheR, TheG, TheB) SortSelection.Parent = Mouse.Target SortSelection.Adornee = SortSelection.Parent

  4554. local MainItem = SortSelection.Adornee.Parent

  4555. sortstate = 2

  4556. wait(0.5)

  4557. SortSelection:Destroy()

  4558. sortbox = Instance.new("Part", Workspace)

  4559. sortbox.Size = Vector3.new(((MainItem[ItemNameVal].Size.x + 0.1)*XXSort),MainItem[ItemNameVal].Size.y*YYSort,((MainItem[ItemNameVal].Size.z+ 0.1)*ZZSort)) sortbox.Color = Color3.fromRGB(TheR, TheG, TheB) sortbox.Transparency = 0.3 sortbox.CanCollide = false sortbox.Anchored = true sortbox.Material = "ForceField"

  4560. Mouse.TargetFilter = sortbox

  4561. while sortbox do

  4562. if sortstate ~= 3 and Mouse.Target and Mouse.Target.Parent then

  4563. local Mouseclick = Mouse.Hit

  4564. sortbox.Position = CFrame.new(Mouse.Hit.X+((XXSort/2)*MainItem[ItemNameVal].Size.x), Mouse.Hit.Y +((YYSort/2)*MainItem[ItemNameVal].Size.y + 0.01) , Mouse.Hit.z+((ZZSort/2)*MainItem[ItemNameVal].Size.z)) * Vector3.new(0,0.0,0)

  4565. wait()

  4566. end

  4567. wait()

  4568. end

  4569. elseif sortstate == 2 then

  4570. sortstate = 3

  4571. sorttertime = tick()

  4572. local cf = sortbox.CFrame - Vector3.new(sortbox.Size.X/2, sortbox.Size.Y/2, sortbox.Size.Z/2)

  4573. if partsorting.Name == ItemNameVal then

  4574. if partsorting.Parent.Parent.Name == "PlayerModels" then

  4575. if partsorting.Parent:FindFirstChild("Owner") and tostring(partsorting.Parent.Owner.Value) == sortPlayer then

  4576. for i,v in pairs(game:GetService("Workspace").PlayerModels:GetDescendants()) do

  4577. if v.Name == ItemNameVal then

  4578. if v.Parent.Name == partsorting.Parent.Name then

  4579. if v.Parent:FindFirstChild("Owner") and tostring(v.Parent.Owner.Value) == sortPlayer then

  4580. if v.Color == partsorting.Color then

  4581. table.insert(tests, v)

  4582. if XXXSort * YYYSort * ZZZSort == #tests then break end

  4583. end

  4584. end

  4585. end

  4586. end

  4587. end

  4588. if not FastTP then if not NRTP then camon() end end

  4589. for i,v in next, tests do

  4590. local cf2 = cf + Vector3.new((v.Size.X/2) + 0.1, v.Size.Y - 1, (v.Size.Z/2) + 0.1)

  4591. if not v.Parent.PrimaryPart then

  4592. v.Parent.PrimaryPart = v.Parent:FindFirstChild(ItemNameVal)

  4593. end

  4594. if getgenv().sortsortcancel then break end

  4595. if not FastTP then

  4596. if not NRTP then

  4597. game:GetService("Players").LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(v.Position + Vector3.new(0, 0, v.Size.Z + 3),v.Position + Vector3.new(1, 0, 0))

  4598. wait(TimesSort)

  4599. end

  4600. end

  4601. if FastTP then

  4602. if not v.Parent.ItemName.Value then return end

  4603. game:GetService("ReplicatedStorage").PlaceStructure.ClientPlacedStructure:FireServer(v.Parent.ItemName.Value, cf2, v.Parent.Owner.Value, nil, v.Parent, true)

  4604. else

  4605. if not NRTP then

  4606. while not isnetworkowner(v) and not getgenv().sortsortcancel do

  4607. game.ReplicatedStorage.Interaction.ClientIsDragging:FireServer(v.Parent)

  4608. task.wait()

  4609. end

  4610. game.ReplicatedStorage.Interaction.ClientIsDragging:FireServer(v.Parent)

  4611. end

  4612. v:PivotTo(cf2)

  4613. end

  4614. if FastTP then wait(1) else if not NRTP then wait(TimesSort) end end

  4615. RRSort = RRSort + 1

  4616. cf = cf + Vector3.new(v.Size.X + 0, 0, 0)

  4617. if math.floor(RRSort/XXSort) == RRSort/XXSort then

  4618. cf = cf - Vector3.new((v.Size.X + 0) * XXSort, 0, -v.Size.Z - 0)

  4619. end

  4620. if math.floor(RRSort/(ZZSort * XXSort)) == RRSort/(ZZSort * XXSort) then

  4621. cf = cf - Vector3.new(0, -v.Size.Y - 0, (v.Size.Z + 0) * ZZSort)

  4622. end

  4623. end

  4624. end

  4625. end

  4626. end

  4627. end

  4628. fixnames()

  4629. FastTP = nil MainItem = nil sortstate = 0 SortDown:Disconnect() tests = {} sortbox:Destroy() camoff()

  4630. notifications:message{Title = "Butter",Description = "Done in ".. string.format('%.1fs', tick() - sorttertime),Icon = 6023426926}

  4631. end)

  4632. end

  4633. Sortertab1:Button("start", function()

  4634. notifications:message{Title = "Butter",Description = "Click a Item",Icon = 6023426926}

  4635. sort()

  4636. end)

  4637. --#endregion

  4638. --#region DUPE tab

  4639. --#region Mimir Dupe

  4640. Dupetab01:Toggle('Mimir Maxland', '', false, function(Value)

  4641. Mimir = Value

  4642. end)

  4643. Dupetab01:Slider('SlotNumber', '', 1, 1, 6,false, function(Value)

  4644. SlotNumberML = Value

  4645. end)

  4646. SlotNumberML = 1

  4647. Dupetab01:Button('Dupe', function()

  4648. DataSize = DoesSaveExist(SlotNumberML)

  4649. print("Data Size:", DataSize)

  4650. Dupenumber = 35 * DataSize / 2

  4651. print("Leave on:", math.round(Dupenumber))

  4652. MaxDupe(math.round(Dupenumber), Mimir, SlotNumberML)

  4653. end)

  4654. --#region old BaseSize

  4655. Dupetab02:Button('Tutorial', function()

  4656. TutorialVid = "https://youtu.be/q1oDYIFoPcM"

  4657. if not setclipboard(TutorialVid) then

  4658. toclipboard(TutorialVid)

  4659. else

  4660. setclipboard(TutorialVid)

  4661. end

  4662. notifications:message{

  4663. Title = "Butter",

  4664. Description = "copied to clipboard",

  4665. Icon = 6023426926

  4666. }

  4667. end)

  4668. Dupetab02:Toggle('Mimir Maxland', '', false, function(Value)

  4669. Mimir = Value

  4670. end)

  4671. Dupetab02:Dropdown('Base Size', "Select...", {"Small Base", "Medium Base", "Large Base"}, function(Value)

  4672. BaseS = tostring(Value)

  4673. end)

  4674. Dupetab02:Slider('SlotNumber', '', 1, 1, 6,false, function(Value)

  4675. SlotNumberMLO = Value

  4676. end)

  4677. Dupetab02:Button('Dupe', function()

  4678. if BaseS == "Small Base" then

  4679. LIT = 50

  4680. elseif BaseS == "Medium Base" then

  4681. LIT = 100

  4682. elseif BaseS == "Large Base" then

  4683. LIT = 200

  4684. else

  4685. notifications:message{

  4686. Title = "Mimir",

  4687. Description = "Pick a base size",

  4688. Icon = 6023426926

  4689. }

  4690. return

  4691. end

  4692. MaxDupe(LIT, Mimir, SlotNumberMLO)

  4693. end)

  4694. --#endregion

  4695. --#endregion

  4696. --#region Time Dupe

  4697. Dupetab0:Button('GET DUPE TIME', function()

  4698. notifications:message{Title = "Butter",Description = "Load in a base.",Icon = 6023426926}

  4699. getdupetime()

  4700. end)

  4701. Dupetab0:Toggle('I HAVE WATCHED THE YOUTUBE VID.', '', false, function(Value)

  4702. YOUTUBEC = Value

  4703. end)

  4704. Dupetab0:Slider('Slot Number', '', 1, 1, 6 ,false, function(Value)

  4705. slotnumber = Value

  4706. end)

  4707. slotnumber = 1

  4708. Dupetab0:Slider('Time', '', 1, 1, 50 ,true, function(Value)

  4709. dupewaittime = Value

  4710. end)

  4711. Dupetab0:Button('DUPE(THIS WILL START THE DUPE)', function()

  4712. if YOUTUBEC then

  4713. notifications:message{Title = "Butter",Description = "Dupe has started.",Icon = 6023426926}

  4714. BaseDupe()

  4715. else

  4716. notifications:message{Title = "Butter",Description = "You have to check the box.",Icon = 6023426926}

  4717. end

  4718. end)

  4719. --#endregion

  4720. --#region Axe Dupe

  4721. Dupetab1:Slider('Slot number', '', 0, 0, 6,false, function(Value)

  4722. axeslot = Value

  4723. end)

  4724. Dupetab1:Slider('Wait Time', '', 0, 0, 15,true, function(Value)

  4725. axetimewhitt = Value

  4726. end)

  4727. Dupetab1:Button('Dupe Inventory', function()

  4728. AxeDupe(axeslot,axetimewhitt)

  4729. end)

  4730. --#endregion

  4731. --#region Power dupe

  4732. local Label = Dupetab2:Label("Slot receiving the power will be wiped")

  4733. Dupetab2:Slider('To Slot number', '', 0, 0, 6,false, function(Value)

  4734. ToSlot = Value

  4735. end)

  4736. Dupetab2:Button('Start PowerDupe', function()

  4737. notifications:message{

  4738. Title = "Butter",

  4739. Description = "PowerDupe Started!",

  4740. Icon = 6023426926

  4741. }

  4742. PowerDupe(ToSlot)

  4743. end)

  4744. local Label = Dupetab2:Label("Slot receiving the power will be wiped")

  4745. --#endregion

  4746. --#region Sign Dupe

  4747. dropdownMSD = Dupetab3:Dropdown('Main', "Select...", playerList, function(Value)

  4748. getgenv().Nameforsingdupe = Value

  4749. end)

  4750. Dupetab3:Slider('Best slot', '', 1, 1, 6,false, function(Value)

  4751. getgenv().bestnummfordupe = Value

  4752. end)

  4753. Dupetab3:Toggle('Start', '', false, function(Value)

  4754. getgenv().SoldSignAutoFarm = Value

  4755. startnewdupe()

  4756. end)

  4757. Dupetab3:Button('Count SoldSigns', function()

  4758. Signstuff()

  4759. end)

  4760. --#endregion

  4761. --#endregion

  4762. --#region Trolling tab

  4763. Trollingtab1:Toggle('ClearAllShopItems', '', false, function(Value)

  4764. ClearAllShopItems = Value

  4765. if Value then

  4766. ClearShopItems()

  4767. end

  4768. end)

  4769. dropdownTB = Trollingtab1:Dropdown("Player", "Select...", playerList, function(Value)

  4770. plrselected = Value

  4771. end)

  4772. Trollingtab1:Button('BringPlayer', function()

  4773. BringPlayer()

  4774. end)

  4775. Trollingtab1:Button('KillPlayer', function()

  4776. KillPlayer()

  4777. end)

  4778. --#endregion

  4779. --#region Autobuy tab

  4780. Autobuy1:Slider('Amount', '', 1, 1, 100,false, function(Value)

  4781. AutoBuyAmount = Value

  4782. end)

  4783. AOpenbox = false

  4784. Autobuy1:Toggle('Open box', '', false, function(Value)

  4785. AOpenbox = Value

  4786. end)

  4787. Autobuy1:Dropdown("Select Item", "Select...", GrabShopItems(), function(Value)

  4788. ItemToBuy = string.split(Value," - ")[1]

  4789. return

  4790. end)

  4791. Autobuy1:Button("Phurchase Selected Item(s)", function()

  4792. AutoBuy(ItemToBuy,AutoBuyAmount,AOpenbox)

  4793. end)

  4794. Autobuy1:Button("Abort Phurchasing", function()

  4795. AbortAutoBuy = true

  4796. end)

  4797. Autobuy2:Button("Phurchase All Blueprints", function()

  4798. for i,v in next, GetBlueprints() do

  4799. AutoBuy(v,1,true,true)

  4800. end

  4801. end)

  4802. Autobuy2:Button("Toll Bridge", function()

  4803. Pay(15)

  4804. end)

  4805. Autobuy2:Button("Ferry Ticket", function()

  4806. Pay(13)

  4807. end)

  4808. Autobuy2:Button("Power Of Ease", function()

  4809. Pay(3)

  4810. end)

  4811. --#endregion

  4812. --#region WOOD TAB

  4813. Woodtab1:Dropdown("Select Tree", "Select...", {"Generic", "Walnut", "Cherry", "SnowGlow", "Oak", "Birch", "Koa", "Fir", "Volcano", "GreenSwampy", "CaveCrawler", "Palm", "GoldSwampy", "Frost", "Spooky", "SpookyNeon", "LoneCave",}, function(Value)

  4814. getTree = Value

  4815. return

  4816. end)

  4817. Woodtab1:Button("Bring Tree", function()

  4818. BringTreetime = tick()

  4819. if getTree == "LoneCave" then

  4820. bringTree(getTree,true)

  4821. else

  4822. for i = 1,sdasdsad do

  4823. wait()

  4824. bringTree(getTree,false)

  4825. ResizeBar(i,sdasdsad)

  4826. end

  4827. end

  4828. notifications:message{Title = "Butter",Description = "Done in ".. string.format('%.1fs', tick() - BringTreetime),Icon = 6023426926}

  4829. if getTree == "LoneCave" then

  4830. GetToolsfix()

  4831. end

  4832. end)

  4833. Woodtab1:Slider('Amount', '', 1, 1, 30,false, function(Value)

  4834. sdasdsad = Value

  4835. end)

  4836. sdasdsad = 1

  4837. --Woodtab1:Toggle('Infinite axe range', '', false, function(Value)

  4838. --getgenv().Infeaxerange = Value

  4839. --end)

  4840. Woodtab1:Button("Abort", function()

  4841. if getgenv().Infeaxerange then

  4842. infhrp(true)

  4843. end

  4844. getgenv().treestop = false

  4845. wait(5)

  4846. getgenv().treestop = true

  4847. end)

  4848. --Woodtab1:Toggle('No axe cooldown', '', false, function(Value)

  4849. --SetSwingCooldown(Value)

  4850. --end)

  4851. Woodtab2:Toggle('Cut Plank to one by one', '', false, function(Value)

  4852. notifications:message{

  4853. Title = "Butter",

  4854. Description = "Click a plank cut one by one",

  4855. Icon = 6023426926

  4856. }

  4857. UnitCutter = Value

  4858. OneUnitCutter(Value)

  4859. end)

  4860. Woodtab2:Button("Bring All Logs", function()

  4861. BringAllLogs()

  4862. end)

  4863. Woodtab2:Button("Sell All Logs", function()

  4864. SellAllLogs()

  4865. end)

  4866. Woodtab3:Button("Mod Sawmill", function()

  4867. ModSawmill()

  4868. end)

  4869. Woodtab3:Button("Mod Wood", function()

  4870. ModWood()

  4871. end)

  4872. Woodtab4:Button('DickmemberTree', function()

  4873. notifications:message{

  4874. Title = "Butter",

  4875. Description = "Click a Tree to Cut",

  4876. Icon = 6023426926

  4877. }

  4878. DicmemberTree()

  4879. end)

  4880. Woodtab4:Toggle('View LoneCave Tree', '', false, function(Value)

  4881. ViewEndTree(Value)

  4882. end)

  4883. --#endregion

  4884. --#region Settings Tab

  4885. Settingtab1:Button('Reset config', function()

  4886. delfile("Butterv1.lua")

  4887. end)

  4888. Settingtab2:Slider('R', '', TheR, 0, 255, false, function(Value)

  4889. TheR = Value

  4890. end)

  4891. Settingtab2:Slider('G', '', TheG, 0, 255, false, function(Value)

  4892. TheG = Value

  4893. end)

  4894. Settingtab2:Slider('B', '', TheB, 0, 255, false, function(Value)

  4895. TheB = Value

  4896. end)

  4897. Settingtab2:Button('Set', function()

  4898. GameMenuTheme(Color3.fromRGB(25, 25, 25), Color3.fromRGB(TheR,TheG,TheB))

  4899. SaveSettings()

  4900. end)

  4901. local SlotNamesOld = HttpService:JSONDecode(readfile('ButtersSlotNames.cfg'))

  4902. local Player = game:GetService("Players").LocalPlayer

  4903. function SaveSlotNames()

  4904. game:GetService("Players").LocalPlayer.PlayerGui.LoadSaveGUI.SlotList.Visible = false

  4905. game:GetService("Players").LocalPlayer.PlayerGui.MenuGUI.Open.Visible = true

  4906. if isfile('ButtersSlotNames.cfg') then

  4907. local DefaultSlotNames = {}

  4908. DefaultSlotNames[tostring(Player)] = {

  4909. Slot1Val = SSlot1,

  4910. Slot2Val = SSlot2,

  4911. Slot3Val = SSlot3,

  4912. Slot4Val = SSlot4,

  4913. Slot5Val = SSlot5,

  4914. Slot6Val = SSlot6

  4915. }

  4916. writefile('ButtersSlotNames.cfg', HttpService:JSONEncode(DefaultSlotNames))

  4917. end

  4918. end

  4919. SSlot1 = SlotNamesOld[tostring(Player)].Slot1Val

  4920. Settingtab3:Textbox('Slot1', '', SlotNamesOld[tostring(Player)].Slot1Val, function(Value)

  4921. SSlot1 = Value

  4922. SaveSlotNames()

  4923. end)

  4924. SSlot2 = SlotNamesOld[tostring(Player)].Slot2Val

  4925. Settingtab3:Textbox('Slot2', '', SlotNamesOld[tostring(Player)].Slot2Val, function(Value)

  4926. SSlot2 = Value

  4927. SaveSlotNames()

  4928. end)

  4929. SSlot3 = SlotNamesOld[tostring(Player)].Slot3Val

  4930. Settingtab3:Textbox('Slot3', '', SlotNamesOld[tostring(Player)].Slot3Val, function(Value)

  4931. SSlot3 = Value

  4932. SaveSlotNames()

  4933. end)

  4934. SSlot4 = SlotNamesOld[tostring(Player)].Slot4Val

  4935. Settingtab3:Textbox('Slot4', '', SlotNamesOld[tostring(Player)].Slot4Val, function(Value)

  4936. SSlot4 = Value

  4937. SaveSlotNames()

  4938. end)

  4939. SSlot5 = SlotNamesOld[tostring(Player)].Slot5Val

  4940. Settingtab3:Textbox('Slot5', '', SlotNamesOld[tostring(Player)].Slot5Val, function(Value)

  4941. SSlot5 = Value

  4942. SaveSlotNames()

  4943. end)

  4944. SSlot6 = SlotNamesOld[tostring(Player)].Slot6Val

  4945. Settingtab3:Textbox('Slot6', '', SlotNamesOld[tostring(Player)].Slot6Val, function(Value)

  4946. SSlot6 = Value

  4947. SaveSlotNames()

  4948. end)

  4949. task.spawn(function()

  4950. while task.wait() do

  4951. for i,v in pairs(Player.PlayerGui.LoadSaveGUI.SlotList.Main:GetDescendants()) do

  4952. if v.Name == "SlotName" then if v.Text == "Slot 1" then v.Text = SSlot1 elseif v.Text == "Slot 2" then v.Text = SSlot2 elseif v.Text == "Slot 3" then v.Text = SSlot3

  4953. elseif v.Text == "Slot 4" then v.Text = SSlot4 elseif v.Text == "Slot 5" then v.Text = SSlot5 elseif v.Text == "Slot 6" then v.Text = SSlot6 end end

  4954. end

  4955. end

  4956. end)

  4957. --#endregion

  4958. --#region keybinds

  4959. CAMisEnabled = false

  4960. function toggleFeature()

  4961. CAMisEnabled = not CAMisEnabled

  4962. if CAMisEnabled then

  4963. camon()

  4964. else

  4965. camoff()

  4966. end

  4967. end

  4968. -- Connect the function to a keybind

  4969. game:GetService("UserInputService").InputBegan:Connect(function(input, gameProcessedEvent)

  4970. if gameProcessedEvent then return end -- Ignore input if another part of the game is using it

  4971. if input.KeyCode == Enum.KeyCode.C then

  4972. toggleFeature()

  4973. end

  4974. end)

  4975. --#endregion

  4976. --#region UpdateDropdowns

  4977. local function UpdateDropdown()

  4978. playerList = GetPlrs()

  4979. dropdownTTP:SetOptions(playerList)

  4980. dropdownTTPB:SetOptions(playerList)

  4981. dropdownABP:SetOptions(playerList)

  4982. dropdownTVTP:SetOptions(playerList)

  4983. dropdownTVTPP:SetOptions(playerList)

  4984. dropdownIO:SetOptions(playerList)

  4985. dropdownSP:SetOptions(playerList)

  4986. dropdownMSD:SetOptions(playerList)

  4987. dropdownTB:SetOptions(playerList)

  4988. dropdownTTP:SetOptions(playerList)

  4989. dropdownCPP:SetOptions(playerList)

  4990. end

  4991. game.Players.PlayerRemoving:Connect(UpdateDropdown)

  4992. game.Players.PlayerAdded:Connect(UpdateDropdown)

  4993. --#endregion

  4994. --#region math.random tips

  4995. local tipsTable = {

  4996. "Lumber Tycoon came out 15 years ago",

  4997. "Butter hub has a Discord server https://discord.gg/butterhub",

  4998. "The oldest GIFT in the game is the fire present",

  4999. "The owner of butter Hub is kissbox and Gamer",

  5000. "THANK YOU SO MUCH FOR 30K",

  5001. "Butter is good",

  5002. "Butter is on 1.36",

  5003. "I Love you"

  5004. }

  5005. task.spawn(

  5006. function()

  5007. wait(5)

  5008. local randomIndex = math.random(1, #tipsTable)

  5009. local randomTip = tipsTable[randomIndex]

  5010. notifications:message {

  5011. Title = "Did you know",

  5012. Description = randomTip,

  5013. Icon = 6023426926

  5014. }

  5015. end

  5016. )

  5017. --#endregion

Butter Hub - Pastebin.com (2024)
Top Articles
Latest Posts
Article information

Author: Wyatt Volkman LLD

Last Updated:

Views: 6286

Rating: 4.6 / 5 (46 voted)

Reviews: 93% of readers found this page helpful

Author information

Name: Wyatt Volkman LLD

Birthday: 1992-02-16

Address: Suite 851 78549 Lubowitz Well, Wardside, TX 98080-8615

Phone: +67618977178100

Job: Manufacturing Director

Hobby: Running, Mountaineering, Inline skating, Writing, Baton twirling, Computer programming, Stone skipping

Introduction: My name is Wyatt Volkman LLD, I am a handsome, rich, comfortable, lively, zealous, graceful, gifted person who loves writing and wants to share my knowledge and understanding with you.