sagat1719

Untitled

Mar 12th, 2026 (edited)
78
0
Never
4
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 23.39 KB | None | 0 0
  1. local Stealer = Instance.new("ScreenGui")
  2. local Main = Instance.new("Frame")
  3. local Title = Instance.new("TextLabel")
  4. local UICorner = Instance.new("UICorner")
  5. local FileTextbox = Instance.new("TextBox")
  6. local UICorner_2 = Instance.new("UICorner")
  7. local Save = Instance.new("TextButton")
  8. local UICorner_3 = Instance.new("UICorner")
  9. local Clear = Instance.new("TextButton")
  10. local UICorner_4 = Instance.new("UICorner")
  11. local Load = Instance.new("TextButton")
  12. local UICorner_5 = Instance.new("UICorner")
  13. local UICorner_6 = Instance.new("UICorner")
  14. local Choose = Instance.new("TextButton")
  15. local Dropdown = Instance.new("Frame")
  16. local UIListLayout = Instance.new("UIListLayout")
  17. local Plot1 = Instance.new("TextButton")
  18. local Plot2 = Instance.new("TextButton")
  19. local Plot3 = Instance.new("TextButton")
  20. local Plot4 = Instance.new("TextButton")
  21. local Plot5 = Instance.new("TextButton")
  22. local UICorner_7 = Instance.new("UICorner")
  23. local Render = Instance.new("TextButton")
  24. local UICorner_8 = Instance.new("UICorner")
  25. local Build = Instance.new("TextButton")
  26. local UICorner_9 = Instance.new("UICorner")
  27. local Title_2 = Instance.new("TextLabel")
  28. local List = Instance.new("Frame")
  29. local Container = Instance.new("ScrollingFrame")
  30. local UIListLayout_2 = Instance.new("UIListLayout")
  31. local UICorner_10 = Instance.new("UICorner")
  32. local Title_3 = Instance.new("TextLabel")
  33. local UICorner_11 = Instance.new("UICorner")
  34. local Resolution = Instance.new("Frame")
  35. local Notifications = Instance.new("Frame")
  36. local UIListLayout_3 = Instance.new("UIListLayout")
  37.  
  38. Stealer.Name = "Stealer"
  39. Stealer.Parent = gethui and gethui() or game.Players.LocalPlayer:WaitForChild("PlayerGui")
  40. Stealer.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
  41. Stealer.ResetOnSpawn = false
  42.  
  43. Main.Name = "Main"
  44. Main.Parent = Stealer
  45. Main.BackgroundColor3 = Color3.fromRGB(68, 17, 17)
  46. Main.BorderColor3 = Color3.fromRGB(0, 0, 0)
  47. Main.BorderSizePixel = 0
  48. Main.Position = UDim2.new(0, 5, 0, 5)
  49. Main.Size = UDim2.new(0, 200, 0, 140)
  50.  
  51. Title.Name = "Title"
  52. Title.Parent = Main
  53. Title.BackgroundColor3 = Color3.fromRGB(144, 47, 47)
  54. Title.BackgroundTransparency = 0.500
  55. Title.BorderColor3 = Color3.fromRGB(0, 0, 0)
  56. Title.BorderSizePixel = 0
  57. Title.Size = UDim2.new(1, 0, 0, 20)
  58. Title.Font = Enum.Font.Code
  59. Title.Text = "Build Stealer"
  60. Title.TextColor3 = Color3.fromRGB(255, 255, 255)
  61. Title.TextScaled = true
  62. Title.TextSize = 14.000
  63. Title.TextWrapped = true
  64.  
  65. UICorner.Parent = Title
  66.  
  67. FileTextbox.Name = "FileTextbox"
  68. FileTextbox.Parent = Main
  69. FileTextbox.BackgroundColor3 = Color3.fromRGB(144, 47, 47)
  70. FileTextbox.BackgroundTransparency = 0.500
  71. FileTextbox.BorderColor3 = Color3.fromRGB(0, 0, 0)
  72. FileTextbox.BorderSizePixel = 0
  73. FileTextbox.Position = UDim2.new(0, 0, 0, 30)
  74. FileTextbox.Size = UDim2.new(0, 100, 0, 20)
  75. FileTextbox.Font = Enum.Font.Code
  76. FileTextbox.PlaceholderColor3 = Color3.fromRGB(0, 0, 0)
  77. FileTextbox.PlaceholderText = "file name"
  78. FileTextbox.Text = ""
  79. FileTextbox.TextColor3 = Color3.fromRGB(255, 255, 255)
  80. FileTextbox.TextScaled = true
  81. FileTextbox.TextSize = 14.000
  82. FileTextbox.TextWrapped = true
  83.  
  84. UICorner_2.CornerRadius = UDim.new(0, 4)
  85. UICorner_2.Parent = FileTextbox
  86.  
  87. Save.Name = "Save"
  88. Save.Parent = Main
  89. Save.BackgroundColor3 = Color3.fromRGB(144, 47, 47)
  90. Save.BackgroundTransparency = 0.500
  91. Save.BorderColor3 = Color3.fromRGB(0, 0, 0)
  92. Save.BorderSizePixel = 0
  93. Save.Position = UDim2.new(0, 110, 0, 30)
  94. Save.Size = UDim2.new(0, 90, 0, 20)
  95. Save.Font = Enum.Font.Code
  96. Save.Text = "Save"
  97. Save.TextColor3 = Color3.fromRGB(255, 255, 255)
  98. Save.TextScaled = true
  99. Save.TextSize = 14.000
  100. Save.TextWrapped = true
  101.  
  102. UICorner_3.CornerRadius = UDim.new(0, 4)
  103. UICorner_3.Parent = Save
  104.  
  105. Clear.Name = "Clear"
  106. Clear.Parent = Main
  107. Clear.BackgroundColor3 = Color3.fromRGB(144, 47, 47)
  108. Clear.BackgroundTransparency = 0.500
  109. Clear.BorderColor3 = Color3.fromRGB(0, 0, 0)
  110. Clear.BorderSizePixel = 0
  111. Clear.Position = UDim2.new(0, 110, 0, 90)
  112. Clear.Size = UDim2.new(0, 90, 0, 20)
  113. Clear.Font = Enum.Font.Code
  114. Clear.Text = "Clear"
  115. Clear.TextColor3 = Color3.fromRGB(255, 255, 255)
  116. Clear.TextScaled = true
  117. Clear.TextSize = 14.000
  118. Clear.TextWrapped = true
  119.  
  120. UICorner_4.CornerRadius = UDim.new(0, 4)
  121. UICorner_4.Parent = Clear
  122.  
  123. Load.Name = "Load"
  124. Load.Parent = Main
  125. Load.BackgroundColor3 = Color3.fromRGB(144, 47, 47)
  126. Load.BackgroundTransparency = 0.500
  127. Load.BorderColor3 = Color3.fromRGB(0, 0, 0)
  128. Load.BorderSizePixel = 0
  129. Load.Position = UDim2.new(0, 110, 0, 60)
  130. Load.Size = UDim2.new(0, 90, 0, 20)
  131. Load.Font = Enum.Font.Code
  132. Load.Text = "Load"
  133. Load.TextColor3 = Color3.fromRGB(255, 255, 255)
  134. Load.TextScaled = true
  135. Load.TextSize = 14.000
  136. Load.TextWrapped = true
  137.  
  138. UICorner_5.CornerRadius = UDim.new(0, 4)
  139. UICorner_5.Parent = Load
  140.  
  141. UICorner_6.Parent = Main
  142.  
  143. Choose.Name = "Choose"
  144. Choose.Parent = Main
  145. Choose.BackgroundColor3 = Color3.fromRGB(144, 47, 47)
  146. Choose.BackgroundTransparency = 0.500
  147. Choose.BorderColor3 = Color3.fromRGB(0, 0, 0)
  148. Choose.BorderSizePixel = 0
  149. Choose.Position = UDim2.new(0, 0, 0, 60)
  150. Choose.Size = UDim2.new(0, 100, 0, 20)
  151. Choose.Font = Enum.Font.Code
  152. Choose.Text = "Choose house"
  153. Choose.TextColor3 = Color3.fromRGB(255, 255, 255)
  154. Choose.TextScaled = true
  155. Choose.TextSize = 14.000
  156. Choose.TextWrapped = true
  157. Choose.ZIndex = 2
  158.  
  159. Dropdown.Name = "Dropdown"
  160. Dropdown.Parent = Choose
  161. Dropdown.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  162. Dropdown.BackgroundTransparency = 1.000
  163. Dropdown.BorderColor3 = Color3.fromRGB(0, 0, 0)
  164. Dropdown.BorderSizePixel = 0
  165. Dropdown.Position = UDim2.new(0, 0, 1, 0)
  166. Dropdown.Size = UDim2.new(1, 0, 1, 0)
  167. Dropdown.Visible = false
  168.  
  169. UIListLayout.Parent = Dropdown
  170. UIListLayout.SortOrder = Enum.SortOrder.LayoutOrder
  171.  
  172. Plot1.Name = "Plot1"
  173. Plot1.Parent = Dropdown
  174. Plot1.BackgroundColor3 = Color3.fromRGB(170, 78, 78)
  175. Plot1.BorderColor3 = Color3.fromRGB(0, 0, 0)
  176. Plot1.BorderSizePixel = 0
  177. Plot1.Size = UDim2.new(1, 0, 0, 20)
  178. Plot1.Font = Enum.Font.Code
  179. Plot1.Text = "Green House"
  180. Plot1.TextColor3 = Color3.fromRGB(255, 255, 255)
  181. Plot1.TextScaled = true
  182. Plot1.TextSize = 14.000
  183. Plot1.TextWrapped = true
  184.  
  185. Plot2.Name = "Plot2"
  186. Plot2.Parent = Dropdown
  187. Plot2.BackgroundColor3 = Color3.fromRGB(170, 78, 78)
  188. Plot2.BorderColor3 = Color3.fromRGB(0, 0, 0)
  189. Plot2.BorderSizePixel = 0
  190. Plot2.Size = UDim2.new(1, 0, 0, 20)
  191. Plot2.Font = Enum.Font.Code
  192. Plot2.Text = "Pink House"
  193. Plot2.TextColor3 = Color3.fromRGB(255, 255, 255)
  194. Plot2.TextScaled = true
  195. Plot2.TextSize = 14.000
  196. Plot2.TextWrapped = true
  197.  
  198. Plot3.Name = "Plot3"
  199. Plot3.Parent = Dropdown
  200. Plot3.BackgroundColor3 = Color3.fromRGB(170, 78, 78)
  201. Plot3.BorderColor3 = Color3.fromRGB(0, 0, 0)
  202. Plot3.BorderSizePixel = 0
  203. Plot3.Size = UDim2.new(1, 0, 0, 20)
  204. Plot3.Font = Enum.Font.Code
  205. Plot3.Text = "Haunted House"
  206. Plot3.TextColor3 = Color3.fromRGB(255, 255, 255)
  207. Plot3.TextScaled = true
  208. Plot3.TextSize = 14.000
  209. Plot3.TextWrapped = true
  210.  
  211. Plot4.Name = "Plot4"
  212. Plot4.Parent = Dropdown
  213. Plot4.BackgroundColor3 = Color3.fromRGB(170, 78, 78)
  214. Plot4.BorderColor3 = Color3.fromRGB(0, 0, 0)
  215. Plot4.BorderSizePixel = 0
  216. Plot4.Size = UDim2.new(1, 0, 0, 20)
  217. Plot4.Font = Enum.Font.Code
  218. Plot4.Text = "Blue House"
  219. Plot4.TextColor3 = Color3.fromRGB(255, 255, 255)
  220. Plot4.TextScaled = true
  221. Plot4.TextSize = 14.000
  222. Plot4.TextWrapped = true
  223.  
  224. Plot5.Name = "Plot5"
  225. Plot5.Parent = Dropdown
  226. Plot5.BackgroundColor3 = Color3.fromRGB(170, 78, 78)
  227. Plot5.BorderColor3 = Color3.fromRGB(0, 0, 0)
  228. Plot5.BorderSizePixel = 0
  229. Plot5.Size = UDim2.new(1, 0, 0, 20)
  230. Plot5.Font = Enum.Font.Code
  231. Plot5.Text = "Chinese House"
  232. Plot5.TextColor3 = Color3.fromRGB(255, 255, 255)
  233. Plot5.TextScaled = true
  234. Plot5.TextSize = 14.000
  235. Plot5.TextWrapped = true
  236.  
  237. UICorner_7.CornerRadius = UDim.new(0, 4)
  238. UICorner_7.Parent = Choose
  239.  
  240. Render.Name = "Render"
  241. Render.Parent = Main
  242. Render.BackgroundColor3 = Color3.fromRGB(144, 47, 47)
  243. Render.BackgroundTransparency = 0.500
  244. Render.BorderColor3 = Color3.fromRGB(0, 0, 0)
  245. Render.BorderSizePixel = 0
  246. Render.Position = UDim2.new(0, 0, 0, 90)
  247. Render.Size = UDim2.new(0, 100, 0, 20)
  248. Render.Font = Enum.Font.Code
  249. Render.Text = "Render"
  250. Render.TextColor3 = Color3.fromRGB(255, 255, 255)
  251. Render.TextScaled = true
  252. Render.TextSize = 14.000
  253. Render.TextWrapped = true
  254.  
  255. UICorner_8.CornerRadius = UDim.new(0, 4)
  256. UICorner_8.Parent = Render
  257.  
  258. Build.Name = "Build"
  259. Build.Parent = Main
  260. Build.BackgroundColor3 = Color3.fromRGB(144, 47, 47)
  261. Build.BackgroundTransparency = 0.500
  262. Build.BorderColor3 = Color3.fromRGB(0, 0, 0)
  263. Build.BorderSizePixel = 0
  264. Build.Position = UDim2.new(0, 5, 0, 115)
  265. Build.Size = UDim2.new(0, 20, 0, 20)
  266. Build.Font = Enum.Font.Code
  267. Build.Text = ""
  268. Build.TextColor3 = Color3.fromRGB(255, 255, 255)
  269. Build.TextScaled = true
  270. Build.TextSize = 14.000
  271. Build.TextWrapped = true
  272.  
  273. UICorner_9.CornerRadius = UDim.new(0, 4)
  274. UICorner_9.Parent = Build
  275.  
  276. Title_2.Name = "Title"
  277. Title_2.Parent = Build
  278. Title_2.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
  279. Title_2.BackgroundTransparency = 1.000
  280. Title_2.BorderColor3 = Color3.fromRGB(0, 0, 0)
  281. Title_2.BorderSizePixel = 0
  282. Title_2.Position = UDim2.new(1, 10, 0, 0)
  283. Title_2.Size = UDim2.new(0, 160, 0, 20)
  284. Title_2.Font = Enum.Font.Code
  285. Title_2.Text = "Build"
  286. Title_2.TextColor3 = Color3.fromRGB(255, 255, 255)
  287. Title_2.TextScaled = true
  288. Title_2.TextSize = 14.000
  289. Title_2.TextWrapped = true
  290. Title_2.TextXAlignment = Enum.TextXAlignment.Left
  291.  
  292. List.Name = "List"
  293. List.Parent = Stealer
  294. List.AutomaticSize = Enum.AutomaticSize.Y
  295. List.BackgroundColor3 = Color3.fromRGB(68, 17, 17)
  296. List.BorderColor3 = Color3.fromRGB(0, 0, 0)
  297. List.BorderSizePixel = 0
  298. List.Position = UDim2.new(0, 378, 0, 0)
  299. List.Size = UDim2.new(0, 200, 0, 100)
  300.  
  301. Container.Name = "Container"
  302. Container.Parent = List
  303. Container.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  304. Container.BackgroundTransparency = 1.000
  305. Container.BorderColor3 = Color3.fromRGB(0, 0, 0)
  306. Container.BorderSizePixel = 0
  307. Container.Position = UDim2.new(0, 5, 0, 20)
  308. Container.Size = UDim2.new(0, 190, 0, 20)
  309. Container.CanvasSize = UDim2.new(0, 0, 0, 0)
  310.  
  311. UIListLayout_2.Parent = Container
  312. UIListLayout_2.SortOrder = Enum.SortOrder.LayoutOrder
  313.  
  314. UICorner_10.Parent = List
  315.  
  316. Title_3.Name = "Title"
  317. Title_3.Parent = List
  318. Title_3.BackgroundColor3 = Color3.fromRGB(144, 47, 47)
  319. Title_3.BackgroundTransparency = 0.500
  320. Title_3.BorderColor3 = Color3.fromRGB(0, 0, 0)
  321. Title_3.BorderSizePixel = 0
  322. Title_3.Size = UDim2.new(1, 0, 0, 20)
  323. Title_3.Font = Enum.Font.Code
  324. Title_3.Text = "Required Toys"
  325. Title_3.TextColor3 = Color3.fromRGB(255, 255, 255)
  326. Title_3.TextScaled = true
  327. Title_3.TextSize = 14.000
  328. Title_3.TextWrapped = true
  329.  
  330. UICorner_11.Parent = Title_3
  331.  
  332. Resolution.Name = "Resolution"
  333. Resolution.Parent = Stealer
  334. Resolution.Size = UDim2.new(1, 0, 1, 0)
  335. Resolution.Visible = false
  336.  
  337. Notifications.Name = "Notifications"
  338. Notifications.Parent = Stealer
  339. Notifications.AnchorPoint = Vector2.new(1, 1)
  340. Notifications.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  341. Notifications.BackgroundTransparency = 1.000
  342. Notifications.BorderColor3 = Color3.fromRGB(0, 0, 0)
  343. Notifications.BorderSizePixel = 0
  344. Notifications.Position = UDim2.new(1, -10, 1, -10)
  345. Notifications.Size = UDim2.new(0, 200, 0, 60)
  346.  
  347. UIListLayout_3.Parent = Notifications
  348. UIListLayout_3.SortOrder = Enum.SortOrder.LayoutOrder
  349. UIListLayout_3.VerticalAlignment = Enum.VerticalAlignment.Bottom
  350. UIListLayout_3.Padding = UDim.new(0, 10)
  351.  
  352. local UIS = game:GetService("UserInputService")
  353. local TweenService = game:GetService("TweenService")
  354.  
  355. local function notify(title,text,duration)
  356.     if type(text) ~= "string" or type(title) ~= "string" then return end
  357.     if not duration or type(duration) ~= "number" then duration = 3 end
  358.    
  359.     local Template = Instance.new("Frame")
  360.     local Notify = Instance.new("Frame")
  361.     local UICorner = Instance.new("UICorner")
  362.     local Title = Instance.new("TextLabel")
  363.     local UITextSizeConstraint = Instance.new("UITextSizeConstraint")
  364.     local Main = Instance.new("TextLabel")
  365.     local UITextSizeConstraint_2 = Instance.new("UITextSizeConstraint")
  366.  
  367.     Template.Name = "Notification"
  368.     Template.Parent = Notifications
  369.     Template.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  370.     Template.BackgroundTransparency = 1.000
  371.     Template.BorderColor3 = Color3.fromRGB(0, 0, 0)
  372.     Template.BorderSizePixel = 0
  373.     Template.Size = UDim2.new(1, 0, 0, 0)
  374.  
  375.     Notify.Name = "Notify"
  376.     Notify.Parent = Template
  377.     Notify.AnchorPoint = Vector2.new(0, 1)
  378.     Notify.BackgroundColor3 = Color3.fromRGB(68, 17, 17)
  379.     Notify.BackgroundTransparency = 0.300
  380.     Notify.BorderColor3 = Color3.fromRGB(0, 0, 0)
  381.     Notify.BorderSizePixel = 0
  382.     Notify.Position = UDim2.new(1, 10, 1, 10)
  383.     Notify.Size = UDim2.new(1, 0, 1, 0)
  384.  
  385.     UICorner.CornerRadius = UDim.new(0, 6)
  386.     UICorner.Parent = Notify
  387.  
  388.     Title.Name = "Title"
  389.     Title.Parent = Notify
  390.     Title.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  391.     Title.BackgroundTransparency = 1.000
  392.     Title.BorderColor3 = Color3.fromRGB(0, 0, 0)
  393.     Title.BorderSizePixel = 0
  394.     Title.Position = UDim2.new(0, 8, 0, 5)
  395.     Title.Size = UDim2.new(1, -16, 0, 16)
  396.     Title.FontFace = Font.new("rbxasset://fonts/families/Inconsolata.json", Enum.FontWeight.Bold)
  397.     Title.Text = title
  398.     Title.TextColor3 = Color3.fromRGB(255, 255, 255)
  399.     Title.TextScaled = true
  400.     Title.TextSize = 16.000
  401.     Title.TextTransparency = 1.000
  402.     Title.TextWrapped = true
  403.     Title.TextXAlignment = Enum.TextXAlignment.Left
  404.     Title.TextYAlignment = Enum.TextYAlignment.Top
  405.  
  406.     UITextSizeConstraint.Parent = Title
  407.     UITextSizeConstraint.MaxTextSize = 16
  408.  
  409.     Main.Name = "Main"
  410.     Main.Parent = Notify
  411.     Main.AnchorPoint = Vector2.new(0, 1)
  412.     Main.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  413.     Main.BackgroundTransparency = 1.000
  414.     Main.BorderColor3 = Color3.fromRGB(0, 0, 0)
  415.     Main.BorderSizePixel = 0
  416.     Main.Position = UDim2.new(0, 8, 1, -5)
  417.     Main.Size = UDim2.new(1, -16, 1, -30)
  418.     Main.Font = Enum.Font.Code
  419.     Main.Text = text
  420.     Main.TextColor3 = Color3.fromRGB(255, 255, 255)
  421.     Main.TextScaled = true
  422.     Main.TextSize = 14.000
  423.     Main.TextTransparency = 1.000
  424.     Main.TextWrapped = true
  425.     Main.TextXAlignment = Enum.TextXAlignment.Left
  426.     Main.TextYAlignment = Enum.TextYAlignment.Top
  427.  
  428.     UITextSizeConstraint_2.Parent = Main
  429.     UITextSizeConstraint_2.MaxTextSize = 14
  430.     task.spawn(function()
  431.         TweenService:Create(Template.Notify,TweenInfo.new(0.2,Enum.EasingStyle.Quad,Enum.EasingDirection.InOut),{Position = UDim2.new(0,0,1,0)}):Play()
  432.         TweenService:Create(Template,TweenInfo.new(0.2,Enum.EasingStyle.Quad,Enum.EasingDirection.InOut),{Size = UDim2.new(1,0,1,0)}):Play()
  433.         task.wait(0.1)
  434.         TweenService:Create(Template.Notify.Main,TweenInfo.new(0.2),{TextTransparency = 0}):Play()
  435.         TweenService:Create(Template.Notify.Title,TweenInfo.new(0.2),{TextTransparency = 0}):Play()
  436.         task.wait(duration)
  437.         TweenService:Create(Template.Notify.Main,TweenInfo.new(0.2),{TextTransparency = 1}):Play()
  438.         TweenService:Create(Template.Notify.Title,TweenInfo.new(0.2),{TextTransparency = 1}):Play()
  439.         TweenService:Create(Template.Notify,TweenInfo.new(0.2),{BackgroundTransparency = 1}):Play()
  440.         task.wait(0.2)
  441.         TweenService:Create(Template,TweenInfo.new(0.1,Enum.EasingStyle.Quad,Enum.EasingDirection.InOut),{Size = UDim2.new(1,0,0,-10)}):Play()
  442.         task.wait(0.1)
  443.         Template:Destroy()
  444.     end)
  445. end
  446.  
  447.  
  448. local function Drag(gui)
  449.     local parent = gui.Parent
  450.  
  451.     local dragging = false
  452.     local dragStart
  453.     local startOffset
  454.  
  455.     local function getAbsoluteOffset()
  456.         return Vector2.new(
  457.             gui.AbsolutePosition.X - parent.AbsolutePosition.X,
  458.             gui.AbsolutePosition.Y - parent.AbsolutePosition.Y
  459.         )
  460.     end
  461.  
  462.     local function update(input)
  463.         local delta = input.Position - dragStart
  464.  
  465.         local newX = startOffset.X + delta.X
  466.         local newY = startOffset.Y + delta.Y
  467.  
  468.         local maxX = parent.AbsoluteSize.X - gui.AbsoluteSize.X
  469.         local maxY = parent.AbsoluteSize.Y - gui.AbsoluteSize.Y
  470.         newX = math.clamp(newX, 0, maxX)
  471.         newY = math.clamp(newY, 0, maxY)
  472.  
  473.         gui.Position = UDim2.fromOffset(newX, newY)
  474.     end
  475.  
  476.     gui.InputBegan:Connect(function(input)
  477.         if input.UserInputType == Enum.UserInputType.MouseButton1
  478.             or input.UserInputType == Enum.UserInputType.Touch then
  479.  
  480.             dragging = true
  481.             dragStart = input.Position
  482.  
  483.             startOffset = getAbsoluteOffset()
  484.             gui.Position = UDim2.fromOffset(startOffset.X, startOffset.Y)
  485.         end
  486.     end)
  487.  
  488.     UIS.InputChanged:Connect(function(input)
  489.         if dragging and (
  490.             input.UserInputType == Enum.UserInputType.MouseMovement
  491.                 or input.UserInputType == Enum.UserInputType.Touch
  492.             ) then
  493.             update(input)
  494.         end
  495.     end)
  496.  
  497.     UIS.InputEnded:Connect(function(input)
  498.         if input.UserInputType == Enum.UserInputType.MouseButton1
  499.             or input.UserInputType == Enum.UserInputType.Touch then
  500.             dragging = false
  501.         end
  502.     end)
  503. end
  504.  
  505. Drag(List)
  506. Drag(Main)
  507.  
  508. local plot:Folder = nil
  509.  
  510. Choose.Activated:Connect(function()
  511.     Dropdown.Visible = not Dropdown.Visible
  512. end)
  513.  
  514. local httpservice = game:GetService("HttpService")
  515.  
  516. local goal = {}
  517.  
  518. local function getHouseInfo(pl:Folder)
  519.     if not pl then
  520.         if not plot then
  521.             return
  522.         end
  523.         pl = plot
  524.     end
  525.    
  526.     local toys = {}
  527.     for i,v in pl:GetChildren() do
  528.         if v:IsA("Model") then
  529.             local Main = v:WaitForChild("Main",2)
  530.                 or v.PrimaryPart
  531.                 or v:FindFirstChildWhichIsA("BasePart")
  532.             if Main then
  533.                 table.insert(toys,{
  534.                     Name = v.Name,
  535.                     CFrame = {Main.CFrame:GetComponents()}
  536.                 })
  537.             end
  538.         end
  539.     end
  540.  
  541.     local plots = workspace:FindFirstChild("Plots")
  542.     local plotModel = plots and plots:FindFirstChild(pl.Name)
  543.  
  544.     if plotModel and plotModel:FindFirstChild("PlotSign") then
  545.         for _,v in pairs(plotModel.PlotSign:GetChildren()) do
  546.             if v.Name == "Sign" then
  547.                 local frame = v:FindFirstChild("Screen")
  548.                 if frame then
  549.                     frame = frame:FindFirstChild("SurfaceGui")
  550.                 end
  551.                 if frame then
  552.                     frame = frame:FindFirstChild("Frame")
  553.                 end
  554.  
  555.                 if frame and frame:FindFirstChild("PlayerRole") then
  556.                     if frame.PlayerRole.Text == "Owner" then
  557.                         local owner = v.Screen.SurfaceGui.Frame.PlayerDisplayName.Text
  558.                         local ownerplr = nil
  559.                         for ii,vv in game.Players:GetPlayers() do
  560.                             if vv.DisplayName == owner then
  561.                                 ownerplr = vv.Name
  562.                             end
  563.                         end
  564.                         return {
  565.                             PlotNumber = string.sub(pl.Name,5,5),
  566.                             StolenFrom = ownerplr,
  567.                             StolenBy = game.Players.LocalPlayer.Name,
  568.                             Timestamp = os.date(),
  569.                             Toys = toys
  570.                         }
  571.                     end
  572.                 end
  573.             end
  574.         end
  575.     end
  576.     return {
  577.         PlotNumber = string.sub(pl.Name,5,5),
  578.         StolenFrom = "Unknown",
  579.         StolenBy = game.Players.LocalPlayer.Name,
  580.         Timestamp = os.date(),
  581.         Toys = toys
  582.     }
  583. end
  584.  
  585. for i,v in Dropdown:GetChildren() do
  586.     if not v:IsA("TextButton") then
  587.         continue
  588.     end
  589.     v.Activated:Connect(function()
  590.         if workspace:FindFirstChild("PlotItems") then
  591.             plot = workspace:FindFirstChild("PlotItems"):FindFirstChild(v.Name) or nil
  592.         else
  593.             plot = nil
  594.         end
  595.         Dropdown.Visible = false
  596.         Choose.Text = v.Text
  597.     end)
  598. end
  599.  
  600. if not writefile or not readfile then
  601.     local files = Instance.new("Folder",workspace)
  602.     files.Name = "Files"
  603.  
  604.     writefile = function(name,txt)
  605.         local file = Instance.new("StringValue",files)
  606.         file.Name = name
  607.         file.Value = txt
  608.     end
  609.  
  610.     readfile = function(name)
  611.         local file = files:FindFirstChild(name..".ftapBuild") or files:FindFirstChild(name)
  612.         if file then
  613.             return file.Value
  614.         end
  615.     end
  616. end
  617.  
  618. function recount(toys)
  619.     for i,v in Container:GetChildren() do
  620.         if v:IsA("TextLabel") then
  621.             v:Destroy()
  622.         end
  623.     end
  624.     if not toys then
  625.         if not plot then
  626.             return
  627.         end
  628.         toys = getHouseInfo().Toys
  629.     end
  630.     local list = {}
  631.     for i,v in toys do
  632.         if list[v.Name] then
  633.             list[v.Name] = list[v.Name] + 1
  634.         else
  635.             list[v.Name] = 1
  636.         end
  637.     end
  638.     for i,v in list do
  639.         local Toy = Instance.new("TextLabel")
  640.         Toy.Name = "Toy"
  641.         Toy.Parent = Container
  642.         Toy.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
  643.         Toy.BackgroundTransparency = 1.000
  644.         Toy.BorderColor3 = Color3.fromRGB(0, 0, 0)
  645.         Toy.BorderSizePixel = 0
  646.         Toy.Size = UDim2.new(1, 0, 0, 20)
  647.         Toy.Font = Enum.Font.Code
  648.         Toy.Text = v.."x "..i
  649.         Toy.TextColor3 = Color3.fromRGB(255, 255, 255)
  650.         Toy.TextScaled = true
  651.         Toy.TextSize = 14.000
  652.         Toy.TextWrapped = true
  653.         Toy.TextXAlignment = Enum.TextXAlignment.Left
  654.     end
  655. end
  656.  
  657. Save.Activated:Connect(function()
  658.     local info = getHouseInfo()
  659.     if #info.Toys == 0 then
  660.         notify("error","house is empty")
  661.     else
  662.         local file = FileTextbox.Text
  663.         if not string.find(FileTextbox.Text,".ftapBuild") then
  664.             file = FileTextbox.Text..".ftapBuild"
  665.         end
  666.         writefile(file,httpservice:JSONEncode(info))
  667.         notify("by everlast_bandai","Saved as "..FileTextbox.Text)
  668.     end
  669. end)
  670.  
  671. Load.Activated:Connect(function()
  672.     local file = ""
  673.     if string.find(FileTextbox.Text,".ftapBuild") then
  674.         file = readfile(FileTextbox.Text)
  675.     else
  676.         file = readfile(FileTextbox.Text..".ftapBuild")
  677.     end
  678.  
  679.     if not file then
  680.         notify("error","file not found")
  681.         return
  682.     end
  683.     notify("by everlast_bandai","loaded "..FileTextbox.Text)
  684.     local data = httpservice:JSONDecode(file)
  685.     recount(data.Toys)
  686.     goal = data.Toys
  687. end)
  688.  
  689. local layout = Container.UIListLayout
  690.  
  691.  
  692. local function updateSize()
  693.     local contentHeight = layout.AbsoluteContentSize.Y
  694.     local screenHeight = Resolution.AbsoluteSize.Y
  695.     local maxHeight = math.floor(screenHeight * 0.5)
  696.  
  697.     if contentHeight < maxHeight then
  698.         Container.Size = UDim2.new(
  699.             Container.Size.X.Scale,
  700.             Container.Size.X.Offset,
  701.             0,
  702.             contentHeight
  703.         )
  704.  
  705.         Container.CanvasSize = UDim2.fromOffset(0, contentHeight)
  706.     else
  707.         Container.Size = UDim2.new(
  708.             Container.Size.X.Scale,
  709.             Container.Size.X.Offset,
  710.             0,
  711.             maxHeight
  712.         )
  713.  
  714.         Container.CanvasSize = UDim2.fromOffset(0, contentHeight)
  715.     end
  716. end
  717. local toggle = false
  718. local cons = {}
  719. Clear.Activated:Connect(function()
  720.     plot = nil
  721.     Choose.Text = "Choose house"
  722.     recount({})
  723.     goal = {}
  724.     toggle = false
  725.     for _,c in pairs(cons) do
  726.         c:Disconnect()
  727.     end
  728.     table.clear(cons)
  729.     Build.BackgroundColor3 = Color3.fromRGB(144,47,47)
  730. end)
  731.  
  732. Build.Activated:Connect(function()
  733.     if not goal then
  734.         notify("by everlast_bandai","load first!")
  735.         return
  736.     end
  737.     toggle = not toggle
  738.     Build.BackgroundColor3 =
  739.         toggle and Color3.fromRGB(7,144,0)
  740.         or Color3.fromRGB(144,47,47)
  741.  
  742.     if not toggle then
  743.         for _,c in pairs(cons) do
  744.             c:Disconnect()
  745.         end
  746.         table.clear(cons)
  747.         return
  748.     end
  749.     local taken = {}
  750.     local connection = plot.ChildAdded:Connect(function(child)
  751.         for i,v in pairs(goal) do
  752.             if v.Name == child.Name and not taken[i] then
  753.                 print("not taken")
  754.                 local cf = CFrame.new(table.unpack(v.CFrame))
  755.  
  756.                 local cam = workspace.CurrentCamera
  757.                 task.wait(0.5)
  758.                 for _,part in ipairs(child:GetDescendants()) do
  759.                     if part:IsA("BasePart") then
  760.                         part.CanCollide = false
  761.                         local lookCF = CFrame.lookAt(cam.CFrame.Position, part.Position)
  762.                         game.ReplicatedStorage.GrabEvents.SetNetworkOwner:FireServer(part, lookCF)
  763.                         task.wait(0.04)
  764.                     end
  765.                 end
  766.                 taken[i] = child
  767.                 local BodyGyro = Instance.new("BodyGyro")
  768.                 BodyGyro.CFrame = cf
  769.                 BodyGyro.MaxTorque = Vector3.new(math.huge, math.huge, math.huge)
  770.                 BodyGyro.P = 100000
  771.                 BodyGyro.D = 1000
  772.                 BodyGyro.Parent = child.PrimaryPart
  773.  
  774.                 local BodyPosition = Instance.new("BodyPosition")
  775.                 BodyPosition.Position = cf.Position
  776.                 BodyPosition.MaxForce = Vector3.new(math.huge, math.huge, math.huge)
  777.                 BodyPosition.P = 100000
  778.                 BodyPosition.D = 1000
  779.                 BodyPosition.Parent = child.PrimaryPart
  780.                 break
  781.             end
  782.         end
  783.         local remaining = {}
  784.         for i,v in pairs(goal) do
  785.             if not taken[i] then
  786.                 table.insert(remaining, v)
  787.             end
  788.         end
  789.         recount(remaining)
  790.     end)
  791.     table.insert(cons, connection)
  792. end)
  793.  
  794. layout:GetPropertyChangedSignal("AbsoluteContentSize"):Connect(updateSize)
  795.  
  796. updateSize()
  797.  
  798. Render.Visible = false
Advertisement
Comments
  • User was banned
  • User was banned
  • User was banned
  • User was banned
Add Comment
Please, Sign In to add comment