Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local name = game:GetService("Players").LocalPlayer.Name
- local gui = game:GetService("CoreGui")
- function showMsg(text)
- spawn(function()
- local msgwindow = Instance.new("ScreenGui")
- msgwindow.Name = "MsgWindow"
- msgwindow.Parent = gui
- local msgLabel = Instance.new("TextLabel")
- msgLabel.Text = text
- msgLabel.TextWrapped = true
- msgLabel.Parent = msgwindow
- msgLabel.Name = "msgLabel"
- msgLabel.Position = UDim2.new(0,-500,0,200)
- msgLabel.TextSize = 40
- msgLabel.Font = Enum.Font.Highway
- msgLabel.Size = UDim2.new(0, 505, 0, 500)
- msgLabel.BackgroundTransparency = 1
- msgLabel.TextColor3 = Color3.fromRGB(255, 255, 255)
- msgLabel.TextStrokeColor3 = Color3.fromRGB(math.random(255),math.random(255),math.random(255))
- msgLabel.TextStrokeTransparency = 0
- swoosh:Play()
- msgLabel:TweenPosition(UDim2.new(0,700,0,200))
- wait(5)
- swoosh2:Play()
- msgwindow:Remove()
- end)
- end
- function findHouse(name)
- local yourHouse
- local things = workspace:GetChildren()
- for i = 1, #things do
- if things[i].Name == "Property" then
- local aHouse = things[i]:GetChildren()
- if aHouse[1].Name ~= "PlaceHolder" then
- local owner = aHouse[1].Owner.Value
- if owner == name then
- yourHouse = aHouse[1]
- end
- end
- end
- end
- if yourHouse == nil then
- apts = workspace.Apartments:GetChildren()
- for _,v in pairs(apts) do
- local owner = v.Owner.Value
- if owner == name then
- yourHouse = v
- end
- end
- end
- if yourHouse == nil then
- showMsg("No house found")
- end
- return yourHouse
- end
- function ISUpdate2(ItemSpawnerSF, gg, txt)
- yourHouse = findHouse(name)
- local i2 = 0
- for i = 1,#gg do
- if string.find(string.lower(gg[i].Name), string.lower(txt)) then
- if gg[i].Sort.Rooms.Value == "Unlisted" then
- local gg2 = gg[i].ColorOptions:GetChildren()
- for x = 1, #gg2 do
- i2 = i2 + 1
- local B = Instance.new("TextButton")
- local V = Instance.new("StringValue", B)
- V.Value = gg[i].Name
- local C = Instance.new("StringValue", B)
- C.Value = gg2[x].Name
- B.Parent = ItemSpawnerSF
- B.BackgroundColor3 = Color3.new(0.831373, 0.576471, 0.0627451)
- B.BorderSizePixel = 0
- B.Position = UDim2.new(0, 8, 0, (((i2-1)*22)+(3*i2)))
- B.Size = UDim2.new(0, 164, 0, 23)
- B.Font = Enum.Font.SourceSans
- B.Text = V.Value.." ("..C.Value..")"
- B.TextColor3 = Color3.new(0, 0, 0)
- B.TextScaled = true
- B.TextSize = 20
- B.TextWrapped = true
- ItemSpawnerSF.CanvasSize = UDim2.new(0,0,0,(#gg*22+(i*3)+3))
- B.MouseButton1Down:connect(function()
- press2:Play()
- local thing = game.ReplicatedStorage.Furniture:FindFirstChild(B.Text)
- local num = math.random(15)
- if num == 5 then
- showMsg("Tip: You must be standing in your house for this to work")
- end
- local tbl =
- {
- ["Id"] = "{B5G070FF-OMFG-4B87-B2C1-0A90ECC9C78F}",
- ["Name"] = V.Value,
- ["Color"] = C.Value
- }
- local cf = game.Players.LocalPlayer.Character:WaitForChild("HumanoidRootPart").CFrame:toObjectSpace(yourHouse.PlaceHolder.Base.CFrame) + Vector3.new(game.Players.LocalPlayer.Character:WaitForChild("HumanoidRootPart").CFrame.lookVector)
- local x1, y1, z1, m11, m12, m13, m21, m22, m23, m31, m32, m33 = cf:components()
- local tbl2 = {x1, y1, z1, m11, m12, m13, m21, m22, m23, m31, m32, m33}
- game:GetService("Workspace").CommunicationRelays.House.PlaceFurniture:InvokeServer(tbl, tbl2)
- end)
- end
- end
- end
- end
- end
- function ISUpdate(ItemSpawnerSF, gg)
- local i2 = 0
- yourHouse = findHouse(name)
- for i = 1,#gg do
- if gg[i].Sort.Rooms.Value == "Unlisted" then
- local gg2 = gg[i].ColorOptions:GetChildren()
- for x = 1, #gg2 do
- i2 = i2 + 1
- local B = Instance.new("TextButton")
- local V = Instance.new("StringValue", B)
- V.Value = gg[i].Name
- local C = Instance.new("StringValue", B)
- C.Value = gg2[x].Name
- B.Parent = ItemSpawnerSF
- B.BackgroundColor3 = Color3.new(0.831373, 0.576471, 0.0627451)
- B.BorderSizePixel = 0
- B.Position = UDim2.new(0, 8, 0, (((i2-1)*22)+(3*i2)))
- B.Size = UDim2.new(0, 164, 0, 23)
- B.Font = Enum.Font.SourceSans
- B.Text = V.Value.." ("..C.Value..")"
- B.TextColor3 = Color3.new(0, 0, 0)
- B.TextScaled = true
- B.TextSize = 20
- B.TextWrapped = true
- ItemSpawnerSF.CanvasSize = UDim2.new(0,0,0,(#gg*22+(i2*3)+3))
- B.MouseButton1Down:connect(function()
- local thing = game.ReplicatedStorage.Furniture:FindFirstChild(B.Text)
- local num = math.random(15)
- if num == 5 then
- showMsg("Tip: You must be standing in your house for this to work")
- end
- local tbl =
- {
- ["Id"] = "{B5G070FF-OMFG-4B87-B2C1-0A90ECC9C78F}",
- ["Name"] = V.Value,
- ["Color"] = C.Value
- }
- local cf = game.Players.LocalPlayer.Character:WaitForChild("HumanoidRootPart").CFrame:toObjectSpace(yourHouse.Base.CFrame) + Vector3.new(game.Players.LocalPlayer.Character:WaitForChild("HumanoidRootPart").CFrame.lookVector)
- local x1, y1, z1, m11, m12, m13, m21, m22, m23, m31, m32, m33 = cf:components()
- local tbl2 = {x1, y1, z1, m11, m12, m13, m21, m22, m23, m31, m32, m33}
- game:GetService("Workspace").CommunicationRelays.House.PlaceFurniture:InvokeServer(tbl, tbl2)
- end)
- end
- end
- end
- end
- local LogansSpawner= Instance.new("ScreenGui")
- LogansSpawner.Name = "LogansSpawner"
- LogansSpawner.Parent = gui
- LogansSpawner.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
- local ISSearchBox = Instance.new("TextBox")
- local ItemSpawnerSF = Instance.new("ScrollingFrame")
- local ItemSpawnerF = Instance.new("Frame")
- ItemSpawnerF.Name = "ItemSpawnerF"
- ItemSpawnerF.Parent = LogansSpawner
- ItemSpawnerF.BackgroundColor3 = Color3.new(0.0705882, 0.0705882, 0.0705882)
- ItemSpawnerF.BorderSizePixel = 0
- ItemSpawnerF.Position = UDim2.new(0.5, 135, 0.5, -174)
- ItemSpawnerF.Size = UDim2.new(0, 194, 0, 348)
- ItemSpawnerF.Visible = true
- ItemSpawnerF.Active = true
- ItemSpawnerF.Draggable = true
- TitleItem = Instance.new("TextLabel")
- TitleItem.Name = "TitleItem"
- TitleItem.Parent = ItemSpawnerF
- TitleItem.BackgroundColor3 = Color3.new(0.831373, 0.286275, 0.121569)
- TitleItem.BorderSizePixel = 0
- TitleItem.Size = UDim2.new(0, 194, 0, 30)
- TitleItem.Font = Enum.Font.Arial
- TitleItem.Text = "LoganRMX's Limiteds"
- TitleItem.TextColor3 = Color3.new(0, 0, 0)
- TitleItem.TextSize = 16
- TitleItem.TextWrapped = true
- ItemSpawnerSF.Name = "ItemSpawnerSF"
- ItemSpawnerSF.Parent = ItemSpawnerF
- ItemSpawnerSF.BackgroundColor3 = Color3.new(0.0705882, 0.0705882, 0.0705882)
- ItemSpawnerSF.BorderSizePixel = 0
- ItemSpawnerSF.Position = UDim2.new(0, 0, 0.203448279, 0)
- ItemSpawnerSF.Size = UDim2.new(0, 194, 0, 318)
- ISSearchBox.Name = "ISSearchBox"
- ISSearchBox.Parent = ItemSpawnerF
- ISSearchBox.BackgroundColor3 = Color3.new(1, 1, 1)
- ISSearchBox.BackgroundTransparency = 0.80000001192093
- ISSearchBox.Size = UDim2.new(0, 194, 0, 29)
- ISSearchBox.Font = Enum.Font.SourceSans
- ISSearchBox.PlaceholderText = "Search Item..."
- ISSearchBox.Text = ""
- ISSearchBox.TextColor3 = Color3.new(1, 1, 1)
- ISSearchBox.TextSize = 18
- ISSearchBox.Position = UDim2.new(0, 0, 0.103448279, 0)
- local gg = game.ReplicatedStorage.Furniture:GetChildren()
- ISUpdate(ItemSpawnerSF, gg)
- spawn(function()
- while wait() do
- local TweenService = game:GetService("TweenService")
- local tween = TweenService:Create(TitleItem,
- TweenInfo.new(1, Enum.EasingStyle["Linear"].Value, Enum.EasingDirection["Out"].Value),
- {BackgroundColor3 = Color3.fromRGB(math.random(255),math.random(255),math.random(255))})
- tween:Play()
- tween.Completed:Wait()
- tween:Destroy()
- end
- end)
- ISSearchBox.FocusLost:Connect(function()
- local yourHouse = findHouse(name)
- if yourHouse ~= nil then
- local txt = ISSearchBox.Text
- local items = ItemSpawnerSF:GetChildren()
- if txt ~= "" then
- for i=1, #items do
- items[i]:Destroy()
- end
- local gg = game.ReplicatedStorage.Furniture:GetChildren()
- ISUpdate2(ItemSpawnerSF, gg, txt)
- else
- local gg = game.ReplicatedStorage.Furniture:GetChildren()
- ISUpdate(ItemSpawnerSF, gg)
- end
- end
- end)
Add Comment
Please, Sign In to add comment