ProPastingProduction

creditz to logan

Jun 28th, 2020
41
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.94 KB | None | 0 0
  1. press2 = Instance.new("Sound", workspace)
  2. press2.SoundId = "rbxassetid://3199286548"
  3. press2.Volume = 0.5
  4. swoosh = Instance.new("Sound", workspace)
  5. swoosh.SoundId = "rbxassetid://134012322"
  6. swoosh.Volume = 0.5
  7. if not swoosh.IsLoaded then
  8. swoosh.Loaded:Wait()
  9. end
  10. swoosh2 = Instance.new("Sound", workspace)
  11. swoosh2.SoundId = "rbxassetid://596439421"
  12. swoosh2.Volume = 0.5
  13. if not swoosh2.IsLoaded then
  14. swoosh2.Loaded:Wait()
  15. end
  16. if not press2.IsLoaded then
  17. press2.Loaded:Wait()
  18. end
  19.  
  20. local name = game:GetService("Players").LocalPlayer.Name
  21. local gui = game:GetService("CoreGui")
  22.  
  23. function showMsg(text)
  24. spawn(function()
  25. local msgwindow = Instance.new("ScreenGui")
  26. msgwindow.Name = "MsgWindow"
  27. msgwindow.Parent = gui
  28. local msgLabel = Instance.new("TextLabel")
  29. msgLabel.Text = text
  30. msgLabel.TextWrapped = true
  31. msgLabel.Parent = msgwindow
  32. msgLabel.Name = "msgLabel"
  33. msgLabel.Position = UDim2.new(0,-500,0,200)
  34. msgLabel.TextSize = 40
  35. msgLabel.Font = Enum.Font.Highway
  36. msgLabel.Size = UDim2.new(0, 505, 0, 500)
  37. msgLabel.BackgroundTransparency = 1
  38. msgLabel.TextColor3 = Color3.fromRGB(255, 255, 255)
  39. msgLabel.TextStrokeColor3 = Color3.fromRGB(math.random(255),math.random(255),math.random(255))
  40. msgLabel.TextStrokeTransparency = 0
  41. swoosh:Play()
  42. msgLabel:TweenPosition(UDim2.new(0,700,0,200))
  43. wait(5)
  44. swoosh2:Play()
  45. msgwindow:Remove()
  46. end)
  47. end
  48.  
  49. function findHouse(name)
  50. local yourHouse
  51. local things = workspace:GetChildren()
  52. for i = 1, #things do
  53. if things[i].Name == "Property" then
  54. local aHouse = things[i]:GetChildren()
  55. if aHouse[1].Name ~= "PlaceHolder" then
  56. local owner = aHouse[1].Owner.Value
  57. if owner == name then
  58. yourHouse = aHouse[1]
  59. end
  60. end
  61. end
  62. end
  63. if yourHouse == nil then
  64. apts = workspace.Apartments:GetChildren()
  65. for _,v in pairs(apts) do
  66. local owner = v.Owner.Value
  67. if owner == name then
  68. yourHouse = v
  69. end
  70. end
  71. end
  72. if yourHouse == nil then
  73. showMsg("No house found")
  74. end
  75. return yourHouse
  76. end
  77. function ISUpdate2(ItemSpawnerSF, gg, txt)
  78. yourHouse = findHouse(name)
  79. local i2 = 0
  80. for i = 1,#gg do
  81. if string.find(string.lower(gg[i].Name), string.lower(txt)) then
  82. local gg2 = gg[i].ColorOptions:GetChildren()
  83. for x = 1, #gg2 do
  84. i2 = i2 + 1
  85. local B = Instance.new("TextButton")
  86. local V = Instance.new("StringValue", B)
  87. V.Value = gg[i].Name
  88. local C = Instance.new("StringValue", B)
  89. C.Value = gg2[x].Name
  90. B.Parent = ItemSpawnerSF
  91. B.BackgroundColor3 = Color3.new(0.831373, 0.576471, 0.0627451)
  92. B.BorderSizePixel = 0
  93. B.Position = UDim2.new(0, 8, 0, (((i2-1)*22)+(3*i2)))
  94. B.Size = UDim2.new(0, 164, 0, 23)
  95. B.Font = Enum.Font.SourceSans
  96. B.Text = V.Value.." ("..C.Value..")"
  97. B.TextColor3 = Color3.new(0, 0, 0)
  98. B.TextScaled = true
  99. B.TextSize = 20
  100. B.TextWrapped = true
  101. ItemSpawnerSF.CanvasSize = UDim2.new(0,0,0,(#gg*22+(i*3)+3))
  102. B.MouseButton1Down:connect(function()
  103. press2:Play()
  104. local thing = game.ReplicatedStorage.Furniture:FindFirstChild(B.Text)
  105. local num = math.random(15)
  106. if num == 5 then
  107. showMsg("Tip: You must be standing in your house for this to work")
  108. end
  109. local tbl =
  110. {
  111. ["Id"] = "{B5G070FF-OMFG-4B87-B2C1-0A90ECC9C78F}",
  112. ["Name"] = V.Value,
  113. ["Color"] = C.Value
  114. }
  115. local cf = game.Players.LocalPlayer.Character:WaitForChild("HumanoidRootPart").CFrame:toObjectSpace(yourHouse.Base.CFrame) + Vector3.new(game.Players.LocalPlayer.Character:WaitForChild("HumanoidRootPart").CFrame.lookVector)
  116. local x1, y1, z1, m11, m12, m13, m21, m22, m23, m31, m32, m33 = cf:components()
  117.  
  118. local tbl2 = {x1, y1, z1, m11, m12, m13, m21, m22, m23, m31, m32, m33}
  119. game:GetService("Workspace").CommunicationRelays.House.PlaceFurniture:InvokeServer(tbl, tbl2)
  120.  
  121. end)
  122. end
  123. end
  124. end
  125. end
  126.  
  127. function ISUpdate(ItemSpawnerSF, gg)
  128. local i2 = 0
  129. yourHouse = findHouse(name)
  130. for i = 1,#gg do
  131. local gg2 = gg[i].ColorOptions:GetChildren()
  132. for x = 1, #gg2 do
  133. i2 = i2 + 1
  134. local B = Instance.new("TextButton")
  135. local V = Instance.new("StringValue", B)
  136. V.Value = gg[i].Name
  137. local C = Instance.new("StringValue", B)
  138. C.Value = gg2[x].Name
  139. B.Parent = ItemSpawnerSF
  140. B.BackgroundColor3 = Color3.new(0.831373, 0.576471, 0.0627451)
  141. B.BorderSizePixel = 0
  142. B.Position = UDim2.new(0, 8, 0, (((i-1)*22)+(3*i)))
  143. B.Size = UDim2.new(0, 164, 0, 23)
  144. B.Font = Enum.Font.SourceSans
  145. B.Text = V.Value.." ("..C.Value..")"
  146. B.TextColor3 = Color3.new(0, 0, 0)
  147. B.TextScaled = true
  148. B.TextSize = 20
  149. B.TextWrapped = true
  150.  
  151. ItemSpawnerSF.CanvasSize = UDim2.new(0,0,0,(#gg*22+(i*3)+3))
  152.  
  153. B.MouseButton1Down:connect(function()
  154. press2:Play()
  155. local thing = game.ReplicatedStorage.Furniture:FindFirstChild(B.Text)
  156. local num = math.random(15)
  157. if num == 5 then
  158. showMsg("Tip: You must be standing in your house for this to work")
  159. end
  160. local tbl =
  161. {
  162. ["Id"] = "{B5G070FF-OMFG-4B87-B2C1-0A90ECC9C78F}",
  163. ["Name"] = V.Value,
  164. ["Color"] = C.Value
  165. }
  166.  
  167. local cf = game.Players.LocalPlayer.Character:WaitForChild("HumanoidRootPart").CFrame:toObjectSpace(yourHouse.Base.CFrame) + Vector3.new(game.Players.LocalPlayer.Character:WaitForChild("HumanoidRootPart").CFrame.lookVector)
  168. local x1, y1, z1, m11, m12, m13, m21, m22, m23, m31, m32, m33 = cf:components()
  169.  
  170. local tbl2 = {x1, y1, z1, m11, m12, m13, m21, m22, m23, m31, m32, m33}
  171. game:GetService("Workspace").CommunicationRelays.House.PlaceFurniture:InvokeServer(tbl, tbl2)
  172. end)
  173. end
  174. end
  175. end
  176.  
  177. local LogansSpawner= Instance.new("ScreenGui")
  178. LogansSpawner.Name = "LogansSpawner"
  179. LogansSpawner.Parent = gui
  180. LogansSpawner.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
  181.  
  182.  
  183.  
  184.  
  185. local ISSearchBox = Instance.new("TextBox")
  186. local ItemSpawnerSF = Instance.new("ScrollingFrame")
  187. local ItemSpawnerF = Instance.new("Frame")
  188.  
  189. ItemSpawnerF.Name = "ItemSpawnerF"
  190. ItemSpawnerF.Parent = LogansSpawner
  191. ItemSpawnerF.BackgroundColor3 = Color3.new(0.0705882, 0.0705882, 0.0705882)
  192. ItemSpawnerF.BorderSizePixel = 0
  193. ItemSpawnerF.Position = UDim2.new(0.5, 135, 0.5, -174)
  194. ItemSpawnerF.Size = UDim2.new(0, 194, 0, 348)
  195. ItemSpawnerF.Visible = true
  196. ItemSpawnerF.Active = true
  197. ItemSpawnerF.Draggable = true
  198.  
  199.  
  200. TitleItem = Instance.new("TextLabel")
  201. TitleItem.Name = "TitleItem"
  202. TitleItem.Parent = ItemSpawnerF
  203. TitleItem.BackgroundColor3 = Color3.new(0.831373, 0.286275, 0.121569)
  204. TitleItem.BorderSizePixel = 0
  205. TitleItem.Size = UDim2.new(0, 194, 0, 30)
  206. TitleItem.Font = Enum.Font.Arial
  207. TitleItem.Text = "LoganRMX's Furniture"
  208. TitleItem.TextColor3 = Color3.new(0, 0, 0)
  209. TitleItem.TextSize = 16
  210. TitleItem.TextWrapped = true
  211.  
  212. ItemSpawnerSF.Name = "ItemSpawnerSF"
  213. ItemSpawnerSF.Parent = ItemSpawnerF
  214. ItemSpawnerSF.BackgroundColor3 = Color3.new(0.0705882, 0.0705882, 0.0705882)
  215. ItemSpawnerSF.BorderSizePixel = 0
  216. ItemSpawnerSF.Position = UDim2.new(0, 0, 0.203448279, 0)
  217. ItemSpawnerSF.Size = UDim2.new(0, 194, 0, 318)
  218.  
  219. ISSearchBox.Name = "ISSearchBox"
  220. ISSearchBox.Parent = ItemSpawnerF
  221. ISSearchBox.BackgroundColor3 = Color3.new(1, 1, 1)
  222. ISSearchBox.BackgroundTransparency = 0.80000001192093
  223. ISSearchBox.Size = UDim2.new(0, 194, 0, 29)
  224. ISSearchBox.Font = Enum.Font.SourceSans
  225. ISSearchBox.PlaceholderText = "Search Item..."
  226. ISSearchBox.Text = ""
  227. ISSearchBox.TextColor3 = Color3.new(1, 1, 1)
  228. ISSearchBox.TextSize = 18
  229. ISSearchBox.Position = UDim2.new(0, 0, 0.103448279, 0)
  230. local gg = game.ReplicatedStorage.Furniture:GetChildren()
  231. ISUpdate(ItemSpawnerSF, gg)
  232. spawn(function()
  233. while wait() do
  234.  
  235. local TweenService = game:GetService("TweenService")
  236. local tween = TweenService:Create(TitleItem,
  237. TweenInfo.new(1, Enum.EasingStyle["Linear"].Value, Enum.EasingDirection["Out"].Value),
  238. {BackgroundColor3 = Color3.fromRGB(math.random(255),math.random(255),math.random(255))})
  239. tween:Play()
  240. tween.Completed:Wait()
  241. tween:Destroy()
  242.  
  243. end
  244. end)
  245. ISSearchBox.FocusLost:Connect(function()
  246. local yourHouse = findHouse(name)
  247. if yourHouse ~= nil then
  248. local txt = ISSearchBox.Text
  249. local items = ItemSpawnerSF:GetChildren()
  250. if txt ~= "" then
  251. for i=1, #items do
  252. items[i]:Destroy()
  253. end
  254. local gg = game.ReplicatedStorage.Furniture:GetChildren()
  255. ISUpdate2(ItemSpawnerSF, gg, txt)
  256.  
  257.  
  258. else
  259. local gg = game.ReplicatedStorage.Furniture:GetChildren()
  260. ISUpdate(ItemSpawnerSF, gg)
  261.  
  262.  
  263.  
  264. end
  265. end
  266. end)
Add Comment
Please, Sign In to add comment