Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local Stealer = Instance.new("ScreenGui")
- local Main = Instance.new("Frame")
- local Title = Instance.new("TextLabel")
- local UICorner = Instance.new("UICorner")
- local FileTextbox = Instance.new("TextBox")
- local UICorner_2 = Instance.new("UICorner")
- local Save = Instance.new("TextButton")
- local UICorner_3 = Instance.new("UICorner")
- local Clear = Instance.new("TextButton")
- local UICorner_4 = Instance.new("UICorner")
- local Load = Instance.new("TextButton")
- local UICorner_5 = Instance.new("UICorner")
- local UICorner_6 = Instance.new("UICorner")
- local Choose = Instance.new("TextButton")
- local Dropdown = Instance.new("Frame")
- local UIListLayout = Instance.new("UIListLayout")
- local Plot1 = Instance.new("TextButton")
- local Plot2 = Instance.new("TextButton")
- local Plot3 = Instance.new("TextButton")
- local Plot4 = Instance.new("TextButton")
- local Plot5 = Instance.new("TextButton")
- local UICorner_7 = Instance.new("UICorner")
- local Render = Instance.new("TextButton")
- local UICorner_8 = Instance.new("UICorner")
- local Build = Instance.new("TextButton")
- local UICorner_9 = Instance.new("UICorner")
- local Title_2 = Instance.new("TextLabel")
- local List = Instance.new("Frame")
- local Container = Instance.new("ScrollingFrame")
- local UIListLayout_2 = Instance.new("UIListLayout")
- local UICorner_10 = Instance.new("UICorner")
- local Title_3 = Instance.new("TextLabel")
- local UICorner_11 = Instance.new("UICorner")
- local Resolution = Instance.new("Frame")
- local Notifications = Instance.new("Frame")
- local UIListLayout_3 = Instance.new("UIListLayout")
- Stealer.Name = "Stealer"
- Stealer.Parent = gethui and gethui() or game.Players.LocalPlayer:WaitForChild("PlayerGui")
- Stealer.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
- Stealer.ResetOnSpawn = false
- Main.Name = "Main"
- Main.Parent = Stealer
- Main.BackgroundColor3 = Color3.fromRGB(68, 17, 17)
- Main.BorderColor3 = Color3.fromRGB(0, 0, 0)
- Main.BorderSizePixel = 0
- Main.Position = UDim2.new(0, 5, 0, 5)
- Main.Size = UDim2.new(0, 200, 0, 140)
- Title.Name = "Title"
- Title.Parent = Main
- Title.BackgroundColor3 = Color3.fromRGB(144, 47, 47)
- Title.BackgroundTransparency = 0.500
- Title.BorderColor3 = Color3.fromRGB(0, 0, 0)
- Title.BorderSizePixel = 0
- Title.Size = UDim2.new(1, 0, 0, 20)
- Title.Font = Enum.Font.Code
- Title.Text = "Build Stealer"
- Title.TextColor3 = Color3.fromRGB(255, 255, 255)
- Title.TextScaled = true
- Title.TextSize = 14.000
- Title.TextWrapped = true
- UICorner.Parent = Title
- FileTextbox.Name = "FileTextbox"
- FileTextbox.Parent = Main
- FileTextbox.BackgroundColor3 = Color3.fromRGB(144, 47, 47)
- FileTextbox.BackgroundTransparency = 0.500
- FileTextbox.BorderColor3 = Color3.fromRGB(0, 0, 0)
- FileTextbox.BorderSizePixel = 0
- FileTextbox.Position = UDim2.new(0, 0, 0, 30)
- FileTextbox.Size = UDim2.new(0, 100, 0, 20)
- FileTextbox.Font = Enum.Font.Code
- FileTextbox.PlaceholderColor3 = Color3.fromRGB(0, 0, 0)
- FileTextbox.PlaceholderText = "file name"
- FileTextbox.Text = ""
- FileTextbox.TextColor3 = Color3.fromRGB(255, 255, 255)
- FileTextbox.TextScaled = true
- FileTextbox.TextSize = 14.000
- FileTextbox.TextWrapped = true
- UICorner_2.CornerRadius = UDim.new(0, 4)
- UICorner_2.Parent = FileTextbox
- Save.Name = "Save"
- Save.Parent = Main
- Save.BackgroundColor3 = Color3.fromRGB(144, 47, 47)
- Save.BackgroundTransparency = 0.500
- Save.BorderColor3 = Color3.fromRGB(0, 0, 0)
- Save.BorderSizePixel = 0
- Save.Position = UDim2.new(0, 110, 0, 30)
- Save.Size = UDim2.new(0, 90, 0, 20)
- Save.Font = Enum.Font.Code
- Save.Text = "Save"
- Save.TextColor3 = Color3.fromRGB(255, 255, 255)
- Save.TextScaled = true
- Save.TextSize = 14.000
- Save.TextWrapped = true
- UICorner_3.CornerRadius = UDim.new(0, 4)
- UICorner_3.Parent = Save
- Clear.Name = "Clear"
- Clear.Parent = Main
- Clear.BackgroundColor3 = Color3.fromRGB(144, 47, 47)
- Clear.BackgroundTransparency = 0.500
- Clear.BorderColor3 = Color3.fromRGB(0, 0, 0)
- Clear.BorderSizePixel = 0
- Clear.Position = UDim2.new(0, 110, 0, 90)
- Clear.Size = UDim2.new(0, 90, 0, 20)
- Clear.Font = Enum.Font.Code
- Clear.Text = "Clear"
- Clear.TextColor3 = Color3.fromRGB(255, 255, 255)
- Clear.TextScaled = true
- Clear.TextSize = 14.000
- Clear.TextWrapped = true
- UICorner_4.CornerRadius = UDim.new(0, 4)
- UICorner_4.Parent = Clear
- Load.Name = "Load"
- Load.Parent = Main
- Load.BackgroundColor3 = Color3.fromRGB(144, 47, 47)
- Load.BackgroundTransparency = 0.500
- Load.BorderColor3 = Color3.fromRGB(0, 0, 0)
- Load.BorderSizePixel = 0
- Load.Position = UDim2.new(0, 110, 0, 60)
- Load.Size = UDim2.new(0, 90, 0, 20)
- Load.Font = Enum.Font.Code
- Load.Text = "Load"
- Load.TextColor3 = Color3.fromRGB(255, 255, 255)
- Load.TextScaled = true
- Load.TextSize = 14.000
- Load.TextWrapped = true
- UICorner_5.CornerRadius = UDim.new(0, 4)
- UICorner_5.Parent = Load
- UICorner_6.Parent = Main
- Choose.Name = "Choose"
- Choose.Parent = Main
- Choose.BackgroundColor3 = Color3.fromRGB(144, 47, 47)
- Choose.BackgroundTransparency = 0.500
- Choose.BorderColor3 = Color3.fromRGB(0, 0, 0)
- Choose.BorderSizePixel = 0
- Choose.Position = UDim2.new(0, 0, 0, 60)
- Choose.Size = UDim2.new(0, 100, 0, 20)
- Choose.Font = Enum.Font.Code
- Choose.Text = "Choose house"
- Choose.TextColor3 = Color3.fromRGB(255, 255, 255)
- Choose.TextScaled = true
- Choose.TextSize = 14.000
- Choose.TextWrapped = true
- Choose.ZIndex = 2
- Dropdown.Name = "Dropdown"
- Dropdown.Parent = Choose
- Dropdown.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- Dropdown.BackgroundTransparency = 1.000
- Dropdown.BorderColor3 = Color3.fromRGB(0, 0, 0)
- Dropdown.BorderSizePixel = 0
- Dropdown.Position = UDim2.new(0, 0, 1, 0)
- Dropdown.Size = UDim2.new(1, 0, 1, 0)
- Dropdown.Visible = false
- UIListLayout.Parent = Dropdown
- UIListLayout.SortOrder = Enum.SortOrder.LayoutOrder
- Plot1.Name = "Plot1"
- Plot1.Parent = Dropdown
- Plot1.BackgroundColor3 = Color3.fromRGB(170, 78, 78)
- Plot1.BorderColor3 = Color3.fromRGB(0, 0, 0)
- Plot1.BorderSizePixel = 0
- Plot1.Size = UDim2.new(1, 0, 0, 20)
- Plot1.Font = Enum.Font.Code
- Plot1.Text = "Green House"
- Plot1.TextColor3 = Color3.fromRGB(255, 255, 255)
- Plot1.TextScaled = true
- Plot1.TextSize = 14.000
- Plot1.TextWrapped = true
- Plot2.Name = "Plot2"
- Plot2.Parent = Dropdown
- Plot2.BackgroundColor3 = Color3.fromRGB(170, 78, 78)
- Plot2.BorderColor3 = Color3.fromRGB(0, 0, 0)
- Plot2.BorderSizePixel = 0
- Plot2.Size = UDim2.new(1, 0, 0, 20)
- Plot2.Font = Enum.Font.Code
- Plot2.Text = "Pink House"
- Plot2.TextColor3 = Color3.fromRGB(255, 255, 255)
- Plot2.TextScaled = true
- Plot2.TextSize = 14.000
- Plot2.TextWrapped = true
- Plot3.Name = "Plot3"
- Plot3.Parent = Dropdown
- Plot3.BackgroundColor3 = Color3.fromRGB(170, 78, 78)
- Plot3.BorderColor3 = Color3.fromRGB(0, 0, 0)
- Plot3.BorderSizePixel = 0
- Plot3.Size = UDim2.new(1, 0, 0, 20)
- Plot3.Font = Enum.Font.Code
- Plot3.Text = "Haunted House"
- Plot3.TextColor3 = Color3.fromRGB(255, 255, 255)
- Plot3.TextScaled = true
- Plot3.TextSize = 14.000
- Plot3.TextWrapped = true
- Plot4.Name = "Plot4"
- Plot4.Parent = Dropdown
- Plot4.BackgroundColor3 = Color3.fromRGB(170, 78, 78)
- Plot4.BorderColor3 = Color3.fromRGB(0, 0, 0)
- Plot4.BorderSizePixel = 0
- Plot4.Size = UDim2.new(1, 0, 0, 20)
- Plot4.Font = Enum.Font.Code
- Plot4.Text = "Blue House"
- Plot4.TextColor3 = Color3.fromRGB(255, 255, 255)
- Plot4.TextScaled = true
- Plot4.TextSize = 14.000
- Plot4.TextWrapped = true
- Plot5.Name = "Plot5"
- Plot5.Parent = Dropdown
- Plot5.BackgroundColor3 = Color3.fromRGB(170, 78, 78)
- Plot5.BorderColor3 = Color3.fromRGB(0, 0, 0)
- Plot5.BorderSizePixel = 0
- Plot5.Size = UDim2.new(1, 0, 0, 20)
- Plot5.Font = Enum.Font.Code
- Plot5.Text = "Chinese House"
- Plot5.TextColor3 = Color3.fromRGB(255, 255, 255)
- Plot5.TextScaled = true
- Plot5.TextSize = 14.000
- Plot5.TextWrapped = true
- UICorner_7.CornerRadius = UDim.new(0, 4)
- UICorner_7.Parent = Choose
- Render.Name = "Render"
- Render.Parent = Main
- Render.BackgroundColor3 = Color3.fromRGB(144, 47, 47)
- Render.BackgroundTransparency = 0.500
- Render.BorderColor3 = Color3.fromRGB(0, 0, 0)
- Render.BorderSizePixel = 0
- Render.Position = UDim2.new(0, 0, 0, 90)
- Render.Size = UDim2.new(0, 100, 0, 20)
- Render.Font = Enum.Font.Code
- Render.Text = "Render"
- Render.TextColor3 = Color3.fromRGB(255, 255, 255)
- Render.TextScaled = true
- Render.TextSize = 14.000
- Render.TextWrapped = true
- UICorner_8.CornerRadius = UDim.new(0, 4)
- UICorner_8.Parent = Render
- Build.Name = "Build"
- Build.Parent = Main
- Build.BackgroundColor3 = Color3.fromRGB(144, 47, 47)
- Build.BackgroundTransparency = 0.500
- Build.BorderColor3 = Color3.fromRGB(0, 0, 0)
- Build.BorderSizePixel = 0
- Build.Position = UDim2.new(0, 5, 0, 115)
- Build.Size = UDim2.new(0, 20, 0, 20)
- Build.Font = Enum.Font.Code
- Build.Text = ""
- Build.TextColor3 = Color3.fromRGB(255, 255, 255)
- Build.TextScaled = true
- Build.TextSize = 14.000
- Build.TextWrapped = true
- UICorner_9.CornerRadius = UDim.new(0, 4)
- UICorner_9.Parent = Build
- Title_2.Name = "Title"
- Title_2.Parent = Build
- Title_2.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
- Title_2.BackgroundTransparency = 1.000
- Title_2.BorderColor3 = Color3.fromRGB(0, 0, 0)
- Title_2.BorderSizePixel = 0
- Title_2.Position = UDim2.new(1, 10, 0, 0)
- Title_2.Size = UDim2.new(0, 160, 0, 20)
- Title_2.Font = Enum.Font.Code
- Title_2.Text = "Build"
- Title_2.TextColor3 = Color3.fromRGB(255, 255, 255)
- Title_2.TextScaled = true
- Title_2.TextSize = 14.000
- Title_2.TextWrapped = true
- Title_2.TextXAlignment = Enum.TextXAlignment.Left
- List.Name = "List"
- List.Parent = Stealer
- List.AutomaticSize = Enum.AutomaticSize.Y
- List.BackgroundColor3 = Color3.fromRGB(68, 17, 17)
- List.BorderColor3 = Color3.fromRGB(0, 0, 0)
- List.BorderSizePixel = 0
- List.Position = UDim2.new(0, 378, 0, 0)
- List.Size = UDim2.new(0, 200, 0, 100)
- Container.Name = "Container"
- Container.Parent = List
- Container.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- Container.BackgroundTransparency = 1.000
- Container.BorderColor3 = Color3.fromRGB(0, 0, 0)
- Container.BorderSizePixel = 0
- Container.Position = UDim2.new(0, 5, 0, 20)
- Container.Size = UDim2.new(0, 190, 0, 20)
- Container.CanvasSize = UDim2.new(0, 0, 0, 0)
- UIListLayout_2.Parent = Container
- UIListLayout_2.SortOrder = Enum.SortOrder.LayoutOrder
- UICorner_10.Parent = List
- Title_3.Name = "Title"
- Title_3.Parent = List
- Title_3.BackgroundColor3 = Color3.fromRGB(144, 47, 47)
- Title_3.BackgroundTransparency = 0.500
- Title_3.BorderColor3 = Color3.fromRGB(0, 0, 0)
- Title_3.BorderSizePixel = 0
- Title_3.Size = UDim2.new(1, 0, 0, 20)
- Title_3.Font = Enum.Font.Code
- Title_3.Text = "Required Toys"
- Title_3.TextColor3 = Color3.fromRGB(255, 255, 255)
- Title_3.TextScaled = true
- Title_3.TextSize = 14.000
- Title_3.TextWrapped = true
- UICorner_11.Parent = Title_3
- Resolution.Name = "Resolution"
- Resolution.Parent = Stealer
- Resolution.Size = UDim2.new(1, 0, 1, 0)
- Resolution.Visible = false
- Notifications.Name = "Notifications"
- Notifications.Parent = Stealer
- Notifications.AnchorPoint = Vector2.new(1, 1)
- Notifications.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- Notifications.BackgroundTransparency = 1.000
- Notifications.BorderColor3 = Color3.fromRGB(0, 0, 0)
- Notifications.BorderSizePixel = 0
- Notifications.Position = UDim2.new(1, -10, 1, -10)
- Notifications.Size = UDim2.new(0, 200, 0, 60)
- UIListLayout_3.Parent = Notifications
- UIListLayout_3.SortOrder = Enum.SortOrder.LayoutOrder
- UIListLayout_3.VerticalAlignment = Enum.VerticalAlignment.Bottom
- UIListLayout_3.Padding = UDim.new(0, 10)
- local UIS = game:GetService("UserInputService")
- local TweenService = game:GetService("TweenService")
- local function notify(title,text,duration)
- if type(text) ~= "string" or type(title) ~= "string" then return end
- if not duration or type(duration) ~= "number" then duration = 3 end
- local Template = Instance.new("Frame")
- local Notify = Instance.new("Frame")
- local UICorner = Instance.new("UICorner")
- local Title = Instance.new("TextLabel")
- local UITextSizeConstraint = Instance.new("UITextSizeConstraint")
- local Main = Instance.new("TextLabel")
- local UITextSizeConstraint_2 = Instance.new("UITextSizeConstraint")
- Template.Name = "Notification"
- Template.Parent = Notifications
- Template.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- Template.BackgroundTransparency = 1.000
- Template.BorderColor3 = Color3.fromRGB(0, 0, 0)
- Template.BorderSizePixel = 0
- Template.Size = UDim2.new(1, 0, 0, 0)
- Notify.Name = "Notify"
- Notify.Parent = Template
- Notify.AnchorPoint = Vector2.new(0, 1)
- Notify.BackgroundColor3 = Color3.fromRGB(68, 17, 17)
- Notify.BackgroundTransparency = 0.300
- Notify.BorderColor3 = Color3.fromRGB(0, 0, 0)
- Notify.BorderSizePixel = 0
- Notify.Position = UDim2.new(1, 10, 1, 10)
- Notify.Size = UDim2.new(1, 0, 1, 0)
- UICorner.CornerRadius = UDim.new(0, 6)
- UICorner.Parent = Notify
- Title.Name = "Title"
- Title.Parent = Notify
- Title.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- Title.BackgroundTransparency = 1.000
- Title.BorderColor3 = Color3.fromRGB(0, 0, 0)
- Title.BorderSizePixel = 0
- Title.Position = UDim2.new(0, 8, 0, 5)
- Title.Size = UDim2.new(1, -16, 0, 16)
- Title.FontFace = Font.new("rbxasset://fonts/families/Inconsolata.json", Enum.FontWeight.Bold)
- Title.Text = title
- Title.TextColor3 = Color3.fromRGB(255, 255, 255)
- Title.TextScaled = true
- Title.TextSize = 16.000
- Title.TextTransparency = 1.000
- Title.TextWrapped = true
- Title.TextXAlignment = Enum.TextXAlignment.Left
- Title.TextYAlignment = Enum.TextYAlignment.Top
- UITextSizeConstraint.Parent = Title
- UITextSizeConstraint.MaxTextSize = 16
- Main.Name = "Main"
- Main.Parent = Notify
- Main.AnchorPoint = Vector2.new(0, 1)
- Main.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- Main.BackgroundTransparency = 1.000
- Main.BorderColor3 = Color3.fromRGB(0, 0, 0)
- Main.BorderSizePixel = 0
- Main.Position = UDim2.new(0, 8, 1, -5)
- Main.Size = UDim2.new(1, -16, 1, -30)
- Main.Font = Enum.Font.Code
- Main.Text = text
- Main.TextColor3 = Color3.fromRGB(255, 255, 255)
- Main.TextScaled = true
- Main.TextSize = 14.000
- Main.TextTransparency = 1.000
- Main.TextWrapped = true
- Main.TextXAlignment = Enum.TextXAlignment.Left
- Main.TextYAlignment = Enum.TextYAlignment.Top
- UITextSizeConstraint_2.Parent = Main
- UITextSizeConstraint_2.MaxTextSize = 14
- task.spawn(function()
- TweenService:Create(Template.Notify,TweenInfo.new(0.2,Enum.EasingStyle.Quad,Enum.EasingDirection.InOut),{Position = UDim2.new(0,0,1,0)}):Play()
- TweenService:Create(Template,TweenInfo.new(0.2,Enum.EasingStyle.Quad,Enum.EasingDirection.InOut),{Size = UDim2.new(1,0,1,0)}):Play()
- task.wait(0.1)
- TweenService:Create(Template.Notify.Main,TweenInfo.new(0.2),{TextTransparency = 0}):Play()
- TweenService:Create(Template.Notify.Title,TweenInfo.new(0.2),{TextTransparency = 0}):Play()
- task.wait(duration)
- TweenService:Create(Template.Notify.Main,TweenInfo.new(0.2),{TextTransparency = 1}):Play()
- TweenService:Create(Template.Notify.Title,TweenInfo.new(0.2),{TextTransparency = 1}):Play()
- TweenService:Create(Template.Notify,TweenInfo.new(0.2),{BackgroundTransparency = 1}):Play()
- task.wait(0.2)
- TweenService:Create(Template,TweenInfo.new(0.1,Enum.EasingStyle.Quad,Enum.EasingDirection.InOut),{Size = UDim2.new(1,0,0,-10)}):Play()
- task.wait(0.1)
- Template:Destroy()
- end)
- end
- local function Drag(gui)
- local parent = gui.Parent
- local dragging = false
- local dragStart
- local startOffset
- local function getAbsoluteOffset()
- return Vector2.new(
- gui.AbsolutePosition.X - parent.AbsolutePosition.X,
- gui.AbsolutePosition.Y - parent.AbsolutePosition.Y
- )
- end
- local function update(input)
- local delta = input.Position - dragStart
- local newX = startOffset.X + delta.X
- local newY = startOffset.Y + delta.Y
- local maxX = parent.AbsoluteSize.X - gui.AbsoluteSize.X
- local maxY = parent.AbsoluteSize.Y - gui.AbsoluteSize.Y
- newX = math.clamp(newX, 0, maxX)
- newY = math.clamp(newY, 0, maxY)
- gui.Position = UDim2.fromOffset(newX, newY)
- end
- gui.InputBegan:Connect(function(input)
- if input.UserInputType == Enum.UserInputType.MouseButton1
- or input.UserInputType == Enum.UserInputType.Touch then
- dragging = true
- dragStart = input.Position
- startOffset = getAbsoluteOffset()
- gui.Position = UDim2.fromOffset(startOffset.X, startOffset.Y)
- end
- end)
- UIS.InputChanged:Connect(function(input)
- if dragging and (
- input.UserInputType == Enum.UserInputType.MouseMovement
- or input.UserInputType == Enum.UserInputType.Touch
- ) then
- update(input)
- end
- end)
- UIS.InputEnded:Connect(function(input)
- if input.UserInputType == Enum.UserInputType.MouseButton1
- or input.UserInputType == Enum.UserInputType.Touch then
- dragging = false
- end
- end)
- end
- Drag(List)
- Drag(Main)
- local plot:Folder = nil
- Choose.Activated:Connect(function()
- Dropdown.Visible = not Dropdown.Visible
- end)
- local httpservice = game:GetService("HttpService")
- local goal = {}
- local function getHouseInfo(pl:Folder)
- if not pl then
- if not plot then
- return
- end
- pl = plot
- end
- local toys = {}
- for i,v in pl:GetChildren() do
- if v:IsA("Model") then
- local Main = v:WaitForChild("Main",2)
- or v.PrimaryPart
- or v:FindFirstChildWhichIsA("BasePart")
- if Main then
- table.insert(toys,{
- Name = v.Name,
- CFrame = {Main.CFrame:GetComponents()}
- })
- end
- end
- end
- local plots = workspace:FindFirstChild("Plots")
- local plotModel = plots and plots:FindFirstChild(pl.Name)
- if plotModel and plotModel:FindFirstChild("PlotSign") then
- for _,v in pairs(plotModel.PlotSign:GetChildren()) do
- if v.Name == "Sign" then
- local frame = v:FindFirstChild("Screen")
- if frame then
- frame = frame:FindFirstChild("SurfaceGui")
- end
- if frame then
- frame = frame:FindFirstChild("Frame")
- end
- if frame and frame:FindFirstChild("PlayerRole") then
- if frame.PlayerRole.Text == "Owner" then
- local owner = v.Screen.SurfaceGui.Frame.PlayerDisplayName.Text
- local ownerplr = nil
- for ii,vv in game.Players:GetPlayers() do
- if vv.DisplayName == owner then
- ownerplr = vv.Name
- end
- end
- return {
- PlotNumber = string.sub(pl.Name,5,5),
- StolenFrom = ownerplr,
- StolenBy = game.Players.LocalPlayer.Name,
- Timestamp = os.date(),
- Toys = toys
- }
- end
- end
- end
- end
- end
- return {
- PlotNumber = string.sub(pl.Name,5,5),
- StolenFrom = "Unknown",
- StolenBy = game.Players.LocalPlayer.Name,
- Timestamp = os.date(),
- Toys = toys
- }
- end
- for i,v in Dropdown:GetChildren() do
- if not v:IsA("TextButton") then
- continue
- end
- v.Activated:Connect(function()
- if workspace:FindFirstChild("PlotItems") then
- plot = workspace:FindFirstChild("PlotItems"):FindFirstChild(v.Name) or nil
- else
- plot = nil
- end
- Dropdown.Visible = false
- Choose.Text = v.Text
- end)
- end
- if not writefile or not readfile then
- local files = Instance.new("Folder",workspace)
- files.Name = "Files"
- writefile = function(name,txt)
- local file = Instance.new("StringValue",files)
- file.Name = name
- file.Value = txt
- end
- readfile = function(name)
- local file = files:FindFirstChild(name..".ftapBuild") or files:FindFirstChild(name)
- if file then
- return file.Value
- end
- end
- end
- function recount(toys)
- for i,v in Container:GetChildren() do
- if v:IsA("TextLabel") then
- v:Destroy()
- end
- end
- if not toys then
- if not plot then
- return
- end
- toys = getHouseInfo().Toys
- end
- local list = {}
- for i,v in toys do
- if list[v.Name] then
- list[v.Name] = list[v.Name] + 1
- else
- list[v.Name] = 1
- end
- end
- for i,v in list do
- local Toy = Instance.new("TextLabel")
- Toy.Name = "Toy"
- Toy.Parent = Container
- Toy.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
- Toy.BackgroundTransparency = 1.000
- Toy.BorderColor3 = Color3.fromRGB(0, 0, 0)
- Toy.BorderSizePixel = 0
- Toy.Size = UDim2.new(1, 0, 0, 20)
- Toy.Font = Enum.Font.Code
- Toy.Text = v.."x "..i
- Toy.TextColor3 = Color3.fromRGB(255, 255, 255)
- Toy.TextScaled = true
- Toy.TextSize = 14.000
- Toy.TextWrapped = true
- Toy.TextXAlignment = Enum.TextXAlignment.Left
- end
- end
- Save.Activated:Connect(function()
- local info = getHouseInfo()
- if #info.Toys == 0 then
- notify("error","house is empty")
- else
- local file = FileTextbox.Text
- if not string.find(FileTextbox.Text,".ftapBuild") then
- file = FileTextbox.Text..".ftapBuild"
- end
- writefile(file,httpservice:JSONEncode(info))
- notify("by everlast_bandai","Saved as "..FileTextbox.Text)
- end
- end)
- Load.Activated:Connect(function()
- local file = ""
- if string.find(FileTextbox.Text,".ftapBuild") then
- file = readfile(FileTextbox.Text)
- else
- file = readfile(FileTextbox.Text..".ftapBuild")
- end
- if not file then
- notify("error","file not found")
- return
- end
- notify("by everlast_bandai","loaded "..FileTextbox.Text)
- local data = httpservice:JSONDecode(file)
- recount(data.Toys)
- goal = data.Toys
- end)
- local layout = Container.UIListLayout
- local function updateSize()
- local contentHeight = layout.AbsoluteContentSize.Y
- local screenHeight = Resolution.AbsoluteSize.Y
- local maxHeight = math.floor(screenHeight * 0.5)
- if contentHeight < maxHeight then
- Container.Size = UDim2.new(
- Container.Size.X.Scale,
- Container.Size.X.Offset,
- 0,
- contentHeight
- )
- Container.CanvasSize = UDim2.fromOffset(0, contentHeight)
- else
- Container.Size = UDim2.new(
- Container.Size.X.Scale,
- Container.Size.X.Offset,
- 0,
- maxHeight
- )
- Container.CanvasSize = UDim2.fromOffset(0, contentHeight)
- end
- end
- local toggle = false
- local cons = {}
- Clear.Activated:Connect(function()
- plot = nil
- Choose.Text = "Choose house"
- recount({})
- goal = {}
- toggle = false
- for _,c in pairs(cons) do
- c:Disconnect()
- end
- table.clear(cons)
- Build.BackgroundColor3 = Color3.fromRGB(144,47,47)
- end)
- Build.Activated:Connect(function()
- if not goal then
- notify("by everlast_bandai","load first!")
- return
- end
- toggle = not toggle
- Build.BackgroundColor3 =
- toggle and Color3.fromRGB(7,144,0)
- or Color3.fromRGB(144,47,47)
- if not toggle then
- for _,c in pairs(cons) do
- c:Disconnect()
- end
- table.clear(cons)
- return
- end
- local taken = {}
- local connection = plot.ChildAdded:Connect(function(child)
- for i,v in pairs(goal) do
- if v.Name == child.Name and not taken[i] then
- print("not taken")
- local cf = CFrame.new(table.unpack(v.CFrame))
- local cam = workspace.CurrentCamera
- task.wait(0.5)
- for _,part in ipairs(child:GetDescendants()) do
- if part:IsA("BasePart") then
- part.CanCollide = false
- local lookCF = CFrame.lookAt(cam.CFrame.Position, part.Position)
- game.ReplicatedStorage.GrabEvents.SetNetworkOwner:FireServer(part, lookCF)
- task.wait(0.04)
- end
- end
- taken[i] = child
- local BodyGyro = Instance.new("BodyGyro")
- BodyGyro.CFrame = cf
- BodyGyro.MaxTorque = Vector3.new(math.huge, math.huge, math.huge)
- BodyGyro.P = 100000
- BodyGyro.D = 1000
- BodyGyro.Parent = child.PrimaryPart
- local BodyPosition = Instance.new("BodyPosition")
- BodyPosition.Position = cf.Position
- BodyPosition.MaxForce = Vector3.new(math.huge, math.huge, math.huge)
- BodyPosition.P = 100000
- BodyPosition.D = 1000
- BodyPosition.Parent = child.PrimaryPart
- break
- end
- end
- local remaining = {}
- for i,v in pairs(goal) do
- if not taken[i] then
- table.insert(remaining, v)
- end
- end
- recount(remaining)
- end)
- table.insert(cons, connection)
- end)
- layout:GetPropertyChangedSignal("AbsoluteContentSize"):Connect(updateSize)
- updateSize()
- Render.Visible = false
Advertisement