ProPastingProduction

limited only credits to logan

Jun 29th, 2020
41
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 8.04 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. if gg[i].Sort.Rooms.Value == "Unlisted" then
  83. local gg2 = gg[i].ColorOptions:GetChildren()
  84. for x = 1, #gg2 do
  85. i2 = i2 + 1
  86. local B = Instance.new("TextButton")
  87. local V = Instance.new("StringValue", B)
  88. V.Value = gg[i].Name
  89. local C = Instance.new("StringValue", B)
  90. C.Value = gg2[x].Name
  91. B.Parent = ItemSpawnerSF
  92. B.BackgroundColor3 = Color3.new(0.831373, 0.576471, 0.0627451)
  93. B.BorderSizePixel = 0
  94. B.Position = UDim2.new(0, 8, 0, (((i2-1)*22)+(3*i2)))
  95. B.Size = UDim2.new(0, 164, 0, 23)
  96. B.Font = Enum.Font.SourceSans
  97. B.Text = V.Value.." ("..C.Value..")"
  98. B.TextColor3 = Color3.new(0, 0, 0)
  99. B.TextScaled = true
  100. B.TextSize = 20
  101. B.TextWrapped = true
  102. ItemSpawnerSF.CanvasSize = UDim2.new(0,0,0,(#gg*22+(i*3)+3))
  103. B.MouseButton1Down:connect(function()
  104. press2:Play()
  105. local thing = game.ReplicatedStorage.Furniture:FindFirstChild(B.Text)
  106. local num = math.random(15)
  107. if num == 5 then
  108. showMsg("Tip: You must be standing in your house for this to work")
  109. end
  110. local tbl =
  111. {
  112. ["Id"] = "{B5G070FF-OMFG-4B87-B2C1-0A90ECC9C78F}",
  113. ["Name"] = V.Value,
  114. ["Color"] = C.Value
  115. }
  116. local cf = game.Players.LocalPlayer.Character:WaitForChild("HumanoidRootPart").CFrame:toObjectSpace(yourHouse.Base.CFrame) + Vector3.new(game.Players.LocalPlayer.Character:WaitForChild("HumanoidRootPart").CFrame.lookVector)
  117. local x1, y1, z1, m11, m12, m13, m21, m22, m23, m31, m32, m33 = cf:components()
  118.  
  119. local tbl2 = {x1, y1, z1, m11, m12, m13, m21, m22, m23, m31, m32, m33}
  120. game:GetService("Workspace").CommunicationRelays.House.PlaceFurniture:InvokeServer(tbl, tbl2)
  121.  
  122. end)
  123. end
  124. end
  125. end
  126. end
  127. end
  128.  
  129. function ISUpdate(ItemSpawnerSF, gg)
  130. local i2 = 0
  131. yourHouse = findHouse(name)
  132. for i = 1,#gg do
  133. if gg[i].Sort.Rooms.Value == "Unlisted" then
  134. local gg2 = gg[i].ColorOptions:GetChildren()
  135. for x = 1, #gg2 do
  136. i2 = i2 + 1
  137. local B = Instance.new("TextButton")
  138. local V = Instance.new("StringValue", B)
  139. V.Value = gg[i].Name
  140. local C = Instance.new("StringValue", B)
  141. C.Value = gg2[x].Name
  142. B.Parent = ItemSpawnerSF
  143. B.BackgroundColor3 = Color3.new(0.831373, 0.576471, 0.0627451)
  144. B.BorderSizePixel = 0
  145. B.Position = UDim2.new(0, 8, 0, (((i2-1)*22)+(3*i2)))
  146. B.Size = UDim2.new(0, 164, 0, 23)
  147. B.Font = Enum.Font.SourceSans
  148. B.Text = V.Value.." ("..C.Value..")"
  149. B.TextColor3 = Color3.new(0, 0, 0)
  150. B.TextScaled = true
  151. B.TextSize = 20
  152. B.TextWrapped = true
  153.  
  154. ItemSpawnerSF.CanvasSize = UDim2.new(0,0,0,(#gg*22+(i2*3)+3))
  155.  
  156. B.MouseButton1Down:connect(function()
  157. press2:Play()
  158. local thing = game.ReplicatedStorage.Furniture:FindFirstChild(B.Text)
  159. local num = math.random(15)
  160. if num == 5 then
  161. showMsg("Tip: You must be standing in your house for this to work")
  162. end
  163. local tbl =
  164. {
  165. ["Id"] = "{B5G070FF-OMFG-4B87-B2C1-0A90ECC9C78F}",
  166. ["Name"] = V.Value,
  167. ["Color"] = C.Value
  168. }
  169.  
  170. local cf = game.Players.LocalPlayer.Character:WaitForChild("HumanoidRootPart").CFrame:toObjectSpace(yourHouse.Base.CFrame) + Vector3.new(game.Players.LocalPlayer.Character:WaitForChild("HumanoidRootPart").CFrame.lookVector)
  171. local x1, y1, z1, m11, m12, m13, m21, m22, m23, m31, m32, m33 = cf:components()
  172.  
  173. local tbl2 = {x1, y1, z1, m11, m12, m13, m21, m22, m23, m31, m32, m33}
  174. game:GetService("Workspace").CommunicationRelays.House.PlaceFurniture:InvokeServer(tbl, tbl2)
  175. end)
  176. end
  177. end
  178. end
  179. end
  180.  
  181. local LogansSpawner= Instance.new("ScreenGui")
  182. LogansSpawner.Name = "LogansSpawner"
  183. LogansSpawner.Parent = gui
  184. LogansSpawner.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
  185.  
  186.  
  187.  
  188.  
  189. local ISSearchBox = Instance.new("TextBox")
  190. local ItemSpawnerSF = Instance.new("ScrollingFrame")
  191. local ItemSpawnerF = Instance.new("Frame")
  192.  
  193. ItemSpawnerF.Name = "ItemSpawnerF"
  194. ItemSpawnerF.Parent = LogansSpawner
  195. ItemSpawnerF.BackgroundColor3 = Color3.new(0.0705882, 0.0705882, 0.0705882)
  196. ItemSpawnerF.BorderSizePixel = 0
  197. ItemSpawnerF.Position = UDim2.new(0.5, 135, 0.5, -174)
  198. ItemSpawnerF.Size = UDim2.new(0, 194, 0, 348)
  199. ItemSpawnerF.Visible = true
  200. ItemSpawnerF.Active = true
  201. ItemSpawnerF.Draggable = true
  202.  
  203.  
  204. TitleItem = Instance.new("TextLabel")
  205. TitleItem.Name = "TitleItem"
  206. TitleItem.Parent = ItemSpawnerF
  207. TitleItem.BackgroundColor3 = Color3.new(0.831373, 0.286275, 0.121569)
  208. TitleItem.BorderSizePixel = 0
  209. TitleItem.Size = UDim2.new(0, 194, 0, 30)
  210. TitleItem.Font = Enum.Font.Arial
  211. TitleItem.Text = "LoganRMX's Limiteds"
  212. TitleItem.TextColor3 = Color3.new(0, 0, 0)
  213. TitleItem.TextSize = 16
  214. TitleItem.TextWrapped = true
  215.  
  216. ItemSpawnerSF.Name = "ItemSpawnerSF"
  217. ItemSpawnerSF.Parent = ItemSpawnerF
  218. ItemSpawnerSF.BackgroundColor3 = Color3.new(0.0705882, 0.0705882, 0.0705882)
  219. ItemSpawnerSF.BorderSizePixel = 0
  220. ItemSpawnerSF.Position = UDim2.new(0, 0, 0.203448279, 0)
  221. ItemSpawnerSF.Size = UDim2.new(0, 194, 0, 318)
  222.  
  223. ISSearchBox.Name = "ISSearchBox"
  224. ISSearchBox.Parent = ItemSpawnerF
  225. ISSearchBox.BackgroundColor3 = Color3.new(1, 1, 1)
  226. ISSearchBox.BackgroundTransparency = 0.80000001192093
  227. ISSearchBox.Size = UDim2.new(0, 194, 0, 29)
  228. ISSearchBox.Font = Enum.Font.SourceSans
  229. ISSearchBox.PlaceholderText = "Search Item..."
  230. ISSearchBox.Text = ""
  231. ISSearchBox.TextColor3 = Color3.new(1, 1, 1)
  232. ISSearchBox.TextSize = 18
  233. ISSearchBox.Position = UDim2.new(0, 0, 0.103448279, 0)
  234. local gg = game.ReplicatedStorage.Furniture:GetChildren()
  235. ISUpdate(ItemSpawnerSF, gg)
  236. spawn(function()
  237. while wait() do
  238.  
  239. local TweenService = game:GetService("TweenService")
  240. local tween = TweenService:Create(TitleItem,
  241. TweenInfo.new(1, Enum.EasingStyle["Linear"].Value, Enum.EasingDirection["Out"].Value),
  242. {BackgroundColor3 = Color3.fromRGB(math.random(255),math.random(255),math.random(255))})
  243. tween:Play()
  244. tween.Completed:Wait()
  245. tween:Destroy()
  246.  
  247. end
  248. end)
  249. ISSearchBox.FocusLost:Connect(function()
  250. local yourHouse = findHouse(name)
  251. if yourHouse ~= nil then
  252. local txt = ISSearchBox.Text
  253. local items = ItemSpawnerSF:GetChildren()
  254. if txt ~= "" then
  255. for i=1, #items do
  256. items[i]:Destroy()
  257. end
  258. local gg = game.ReplicatedStorage.Furniture:GetChildren()
  259. ISUpdate2(ItemSpawnerSF, gg, txt)
  260.  
  261.  
  262. else
  263. local gg = game.ReplicatedStorage.Furniture:GetChildren()
  264. ISUpdate(ItemSpawnerSF, gg)
  265.  
  266.  
  267.  
  268. end
  269. end
  270. end)
Add Comment
Please, Sign In to add comment