dontpingme

Untitled

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