Advertisement
Sakkzz

BpArt

Dec 27th, 2019
131
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 16.48 KB | None | 0 0
  1. local service = setmetatable({}, {__index = function(t, k) return game:GetService(k) end })
  2. local bpArt = Instance.new("ScreenGui")
  3. local Frame = Instance.new("Frame")
  4. local ArtFrame = Instance.new("Frame")
  5. local ArtList = Instance.new("ScrollingFrame")
  6. local URL = Instance.new("TextBox")
  7. local Import = Instance.new("TextButton")
  8. local SpawnFrame = Instance.new("Frame")
  9. local TreeList = Instance.new("ScrollingFrame")
  10. local Spawn = Instance.new("TextButton")
  11. local Back = Instance.new("TextButton")
  12. local rotationLeft = Instance.new("TextButton")
  13. local rotationRight = Instance.new("TextButton")
  14. local offsetUp = Instance.new("TextButton")
  15. local offsetDown = Instance.new("TextButton")
  16. local offSetLabel = Instance.new("TextLabel")
  17. local rotationLabel = Instance.new("TextLabel")
  18. local TreeType = Instance.new("TextBox")
  19. local offSet = Instance.new("TextBox")
  20. local Close = Instance.new("TextButton")
  21. local Title = Instance.new("TextLabel")
  22. local Plot = Instance.new("TextButton")
  23.  
  24. bpArt.Name = "bpArt"
  25. bpArt.Parent = game.CoreGui
  26.  
  27. Frame.Parent = bpArt
  28. Frame.Active = true
  29. Frame.BackgroundColor3 = Color3.new(0, 0, 0)
  30. Frame.BorderColor3 = Color3.new(0, 0, 0)
  31. Frame.Draggable = true
  32. Frame.Position = UDim2.new(0, 500, 0, 135)
  33. Frame.Selectable = true
  34. Frame.Size = UDim2.new(0, 345, 0, 230)
  35.  
  36. ArtFrame.Name = "ArtFrame"
  37. ArtFrame.Parent = Frame
  38. ArtFrame.BackgroundColor3 = Color3.new(0.168627, 0.168627, 0.172549)
  39. ArtFrame.BorderColor3 = Color3.new(0, 0, 0)
  40. ArtFrame.Position = UDim2.new(0, 0, 0, 20)
  41. ArtFrame.Size = UDim2.new(0, 345, 0, 210)
  42.  
  43. ArtList.Name = "ArtList"
  44. ArtList.Parent = ArtFrame
  45. ArtList.BackgroundColor3 = Color3.new(0, 0, 0)
  46. ArtList.BorderColor3 = Color3.new(0, 0, 0)
  47. ArtList.Position = UDim2.new(0, 10, 0, 10)
  48. ArtList.Size = UDim2.new(0, 325, 0, 135)
  49.  
  50. URL.Name = "URL"
  51. URL.Parent = ArtFrame
  52. URL.BackgroundColor3 = Color3.new(0.403922, 0.403922, 0.403922)
  53. URL.Position = UDim2.new(0, 70, 0, 152)
  54. URL.Size = UDim2.new(0, 200, 0, 20)
  55. URL.Font = Enum.Font.Gotham
  56. URL.PlaceholderColor3 = Color3.new(0, 0, 0)
  57. URL.PlaceholderText = "Custom Art URL"
  58. URL.Text = ""
  59. URL.TextColor3 = Color3.new(0, 0, 0)
  60. URL.TextSize = 14
  61.  
  62. Import.Name = "Import"
  63. Import.Parent = ArtFrame
  64. Import.BackgroundColor3 = Color3.new(1, 1, 1)
  65. Import.Position = UDim2.new(0, 70, 0, 175)
  66. Import.Size = UDim2.new(0, 200, 0, 30)
  67. Import.Style = Enum.ButtonStyle.RobloxButton
  68. Import.Font = Enum.Font.Gotham
  69. Import.Text = "Import Art"
  70. Import.TextColor3 = Color3.new(1, 1, 1)
  71. Import.TextSize = 14
  72.  
  73. SpawnFrame.Name = "SpawnFrame"
  74. SpawnFrame.Parent = Frame
  75. SpawnFrame.BackgroundColor3 = Color3.new(0.168627, 0.168627, 0.172549)
  76. SpawnFrame.BorderColor3 = Color3.new(0, 0, 0)
  77. SpawnFrame.Position = UDim2.new(0, 0, 0, 20)
  78. SpawnFrame.Size = UDim2.new(0, 345, 0, 210)
  79. SpawnFrame.Visible = false
  80.  
  81. TreeList.Name = "TreeList"
  82. TreeList.Parent = SpawnFrame
  83. TreeList.BackgroundColor3 = Color3.new(0, 0, 0)
  84. TreeList.BorderColor3 = Color3.new(0.168627, 0.168627, 0.172549)
  85. TreeList.Position = UDim2.new(0, 10, 0, 10)
  86. TreeList.Size = UDim2.new(0, 170, 0, 160)
  87.  
  88. Spawn.Name = "Spawn"
  89. Spawn.Parent = SpawnFrame
  90. Spawn.BackgroundColor3 = Color3.new(1, 1, 1)
  91. Spawn.Position = UDim2.new(0, 15, 0, 175)
  92. Spawn.Size = UDim2.new(0, 155, 0, 30)
  93. Spawn.Style = Enum.ButtonStyle.RobloxButton
  94. Spawn.Font = Enum.Font.Gotham
  95. Spawn.Text = "Spawn Art"
  96. Spawn.TextColor3 = Color3.new(1, 1, 1)
  97. Spawn.TextSize = 14
  98.  
  99. Back.Name = "Back"
  100. Back.Parent = SpawnFrame
  101. Back.BackgroundColor3 = Color3.new(1, 1, 1)
  102. Back.Position = UDim2.new(0, 175, 0, 175)
  103. Back.Size = UDim2.new(0, 155, 0, 30)
  104. Back.Style = Enum.ButtonStyle.RobloxButton
  105. Back.Font = Enum.Font.Gotham
  106. Back.Text = "Back"
  107. Back.TextColor3 = Color3.new(1, 1, 1)
  108. Back.TextSize = 14
  109.  
  110. rotationLeft.Name = "rotationLeft"
  111. rotationLeft.Parent = SpawnFrame
  112. rotationLeft.BackgroundColor3 = Color3.new(1, 1, 1)
  113. rotationLeft.Position = UDim2.new(0, 215, 0, 80)
  114. rotationLeft.Size = UDim2.new(0, 35, 0, 30)
  115. rotationLeft.Style = Enum.ButtonStyle.RobloxButton
  116. rotationLeft.Font = Enum.Font.Gotham
  117. rotationLeft.Text = "◄"
  118. rotationLeft.TextColor3 = Color3.new(1, 1, 1)
  119. rotationLeft.TextSize = 14
  120.  
  121. rotationRight.Name = "rotationRight"
  122. rotationRight.Parent = SpawnFrame
  123. rotationRight.BackgroundColor3 = Color3.new(1, 1, 1)
  124. rotationRight.Position = UDim2.new(0, 275, 0, 80)
  125. rotationRight.Size = UDim2.new(0, 35, 0, 30)
  126. rotationRight.Style = Enum.ButtonStyle.RobloxButton
  127. rotationRight.Font = Enum.Font.Gotham
  128. rotationRight.Text = "►"
  129. rotationRight.TextColor3 = Color3.new(1, 1, 1)
  130. rotationRight.TextSize = 14
  131.  
  132. offsetUp.Name = "offsetUp"
  133. offsetUp.Parent = SpawnFrame
  134. offsetUp.BackgroundColor3 = Color3.new(1, 1, 1)
  135. offsetUp.Position = UDim2.new(0, 245, 0, 50)
  136. offsetUp.Size = UDim2.new(0, 35, 0, 30)
  137. offsetUp.Style = Enum.ButtonStyle.RobloxButton
  138. offsetUp.Font = Enum.Font.Gotham
  139. offsetUp.Text = "▲"
  140. offsetUp.TextColor3 = Color3.new(1, 1, 1)
  141. offsetUp.TextSize = 14
  142.  
  143. offsetDown.Name = "offsetDown"
  144. offsetDown.Parent = SpawnFrame
  145. offsetDown.BackgroundColor3 = Color3.new(1, 1, 1)
  146. offsetDown.Position = UDim2.new(0, 245, 0, 110)
  147. offsetDown.Size = UDim2.new(0, 35, 0, 30)
  148. offsetDown.Style = Enum.ButtonStyle.RobloxButton
  149. offsetDown.Font = Enum.Font.Gotham
  150. offsetDown.Text = "▼"
  151. offsetDown.TextColor3 = Color3.new(1, 1, 1)
  152. offsetDown.TextSize = 14
  153.  
  154. offSetLabel.Name = "offSetLabel"
  155. offSetLabel.Parent = SpawnFrame
  156. offSetLabel.BackgroundColor3 = Color3.new(1, 1, 1)
  157. offSetLabel.BackgroundTransparency = 1
  158. offSetLabel.Position = UDim2.new(0, 270, 0, 150)
  159. offSetLabel.Size = UDim2.new(0, 80, 0, 20)
  160. offSetLabel.Font = Enum.Font.Gotham
  161. offSetLabel.Text = "↑ Offset ↓"
  162. offSetLabel.TextColor3 = Color3.new(1, 1, 1)
  163. offSetLabel.TextSize = 12
  164.  
  165. rotationLabel.Name = "rotationLabel"
  166. rotationLabel.Parent = SpawnFrame
  167. rotationLabel.BackgroundColor3 = Color3.new(1, 1, 1)
  168. rotationLabel.BackgroundTransparency = 1
  169. rotationLabel.Position = UDim2.new(0, 190, 0, 150)
  170. rotationLabel.Size = UDim2.new(0, 75, 0, 20)
  171. rotationLabel.Font = Enum.Font.Gotham
  172. rotationLabel.Text = "→  Rotation ←"
  173. rotationLabel.TextColor3 = Color3.new(1, 1, 1)
  174. rotationLabel.TextSize = 12
  175.  
  176. TreeType.Name = "TreeType"
  177. TreeType.Parent = SpawnFrame
  178. TreeType.BackgroundColor3 = Color3.new(0.403922, 0.403922, 0.403922)
  179. TreeType.Position = UDim2.new(0, 190, 0, 10)
  180. TreeType.Size = UDim2.new(0, 145, 0, 20)
  181. TreeType.Font = Enum.Font.Gotham
  182. TreeType.PlaceholderColor3 = Color3.new(0, 0, 0)
  183. TreeType.PlaceholderText = "Select a Tree Type"
  184. TreeType.Text = ""
  185. TreeType.TextColor3 = Color3.new(0, 0, 0)
  186. TreeType.TextSize = 14
  187.  
  188. offSet.Name = "offSet"
  189. offSet.Parent = SpawnFrame
  190. offSet.BackgroundColor3 = Color3.new(0.403922, 0.403922, 0.403922)
  191. offSet.Position = UDim2.new(0, 310, 0, 120)
  192. offSet.Size = UDim2.new(0, 25, 0, 20)
  193. offSet.Font = Enum.Font.Gotham
  194. offSet.PlaceholderColor3 = Color3.new(0, 0, 0)
  195. offSet.PlaceholderText = "Select a Tree Type"
  196. offSet.Text = "0.1"
  197. offSet.TextColor3 = Color3.new(0, 0, 0)
  198. offSet.TextSize = 14
  199.  
  200. Close.Name = "Close"
  201. Close.Parent = Frame
  202. Close.BackgroundColor3 = Color3.new(1, 1, 1)
  203. Close.BackgroundTransparency = 1
  204. Close.Position = UDim2.new(0, 325, 0, 0)
  205. Close.Size = UDim2.new(0, 20, 0, 20)
  206. Close.Font = Enum.Font.Gotham
  207. Close.Text = "X"
  208. Close.TextColor3 = Color3.new(1, 0, 0)
  209. Close.TextSize = 14
  210.  
  211. Title.Name = "Title"
  212. Title.Parent = Frame
  213. Title.BackgroundColor3 = Color3.new(1, 1, 1)
  214. Title.BackgroundTransparency = 1
  215. Title.Size = UDim2.new(0, 325, 0, 20)
  216. Title.Font = Enum.Font.Gotham
  217. Title.Text = "Lumber Tycoon 2 - Blueprint Art"
  218. Title.TextColor3 = Color3.new(1, 1, 1)
  219. Title.TextSize = 14
  220.  
  221. Plot.Name = "Plot"
  222. Plot.Parent = Frame
  223. Plot.BackgroundColor3 = Color3.new(1, 1, 1)
  224. Plot.BackgroundTransparency = 1
  225. Plot.Size = UDim2.new(0, 20, 0, 20)
  226. Plot.Font = Enum.Font.Gotham
  227. Plot.Text = "tp"
  228. Plot.TextColor3 = Color3.new(1, 0, 0)
  229. Plot.TextSize = 12
  230.  
  231. local Player = game:GetService("Players").LocalPlayer
  232. local Root = workspace[Player.Name].HumanoidRootPart
  233. local Mouse = Player:GetMouse()
  234. local Properties = workspace.Properties
  235. local open = false
  236.  
  237. Mouse.KeyDown:connect(function(key)
  238. if key == "p" then
  239.     if open == false then
  240.         open = true
  241.         Frame.Visible = true
  242.     else if open == true then
  243.         open = false
  244.         Frame.Visible = false
  245.             end
  246.         end
  247.     end
  248. end)
  249.  
  250. Plot.MouseButton1Click:connect(function()
  251.     for i,v in pairs(Properties:GetChildren()) do
  252.         if v.Owner.Value == Player then
  253.             Root.CFrame = v.OriginSquare.CFrame + Vector3.new(0,10,0)
  254.         end
  255.     end
  256. end)
  257.  
  258. Close.MouseButton1Click:connect(function()
  259. bpArt:Destroy()
  260. end)
  261.  
  262. function Create(cls,props)
  263.     local inst = Instance.new(cls)
  264.     for i,v in pairs(props) do
  265.         inst[i] = v
  266.     end
  267.     return inst
  268. end
  269.  
  270. SpeedV = true
  271.  
  272. local art = {
  273. "2894414881",
  274. "2894415831",
  275. "2894416885",
  276. "2894418864",
  277. "2894419884",
  278. "2894420664",
  279. "4237120278",
  280. "4235709566",
  281. "2894423741",
  282. "2894424580",
  283. "2897275738",
  284. "2897473382",
  285. "2862577766",
  286. "2862598561",
  287. "2867990114",
  288. "2865494299",
  289. "2867818346",
  290. "2865863886",
  291. "2870128669",
  292. "2870615519",
  293. "2873292333",
  294. "2873620801",
  295. "2873647619",
  296. "2870435651",
  297. "3286916980",
  298. "2897785718",
  299. "4372006055",
  300. "4390546855",
  301. "4390551952",
  302. "4390553897",
  303. "4391280571",
  304. "4430013876",
  305. "4514300944",
  306. "4514305048",
  307. "4514306534",
  308. "4514307113"
  309. }
  310.  
  311. function GetArt()
  312.     local inc=0
  313.     for i,v in pairs(art) do
  314.         local artName = game:GetService("MarketplaceService"):GetProductInfo(v).Name
  315.         ArtList.CanvasSize=UDim2.new(0,0,0,25*inc)
  316.         local SellButton = Create("TextButton",{Parent=ArtList,BackgroundColor3=Color3.new(0.168627,0.168627,0.172549),BorderColor3=Color3.new(0,0,0),Size=UDim2.new(0,300,0,20),Position=UDim2.new(0,5,0,20*inc),Font=Enum.Font.Gotham,TextColor3=Color3.new(1, 1, 1),TextSize=14,Text=artName})
  317.         SellButton.MouseButton1Click:Connect(function()
  318.             selectArt = v
  319.             Import.Text = "Import: "..artName
  320.         end)
  321.         inc = inc + 1
  322.     end
  323.     inc = 0
  324. end
  325.  
  326. GetArt()
  327.  
  328. local colors =
  329. {
  330.     {BrickColor.new("Hot pink"),"GenericSpecial"},
  331.     {BrickColor.new("Lapis"),"CaveCrawler"},
  332.     {BrickColor.new("Sand Red"),"Oak"},
  333.     {BrickColor.new("Mid gray"),"Birch"},
  334.     {BrickColor.new("Brick yellow"),"Fir"},
  335.     {BrickColor.new("Dusty rose"),"Cherry"},
  336.     {BrickColor.new("Nougat"),"Generic"},
  337.     {BrickColor.new("Khaki"),"Palm"},
  338.     {BrickColor.new("Reddish brown"),"Walnut"},
  339.     {BrickColor.new("Rust"),"Koa"},
  340.     {BrickColor.new("Really red"),"Volcano"},
  341.     {BrickColor.new("Br. yellowish orange"),"GoldSwampy"},
  342.     {BrickColor.new("Sea green"),"GreenSwampy"},
  343.     {BrickColor.new("New Yeller"),"SnowGlow"},
  344.     {BrickColor.new("CGA brown"),"Spooky"},
  345.     {BrickColor.new("CGA brown"),"SpookyNeon"},
  346.     {BrickColor.new("Pastel blue-green"),"Frost"},
  347.     {BrickColor.new("White"),"LoneCave"}
  348. }
  349.  
  350.  
  351. function GetWood()
  352.     local inc=0
  353.     for i,v in pairs(colors) do
  354.         TreeList.CanvasSize=UDim2.new(0,0,0,25*inc)
  355.         local SellButton = Create("TextButton",{Parent=TreeList,BackgroundColor3=Color3.new(0.168627,0.168627,0.172549),BorderColor3=Color3.new(0,0,0),Size=UDim2.new(0,145,0,20),Position=UDim2.new(0,5,0,20*inc),Font=Enum.Font.Gotham,TextColor3=Color3.new(1, 1, 1),TextSize=14,Text=v[2]})
  356.         SellButton.MouseButton1Click:Connect(function()
  357.             TreeType.Text = v[2]
  358.             Spawn.Text = "Spawn: "..v[2]
  359.         end)
  360.         inc = inc + 1
  361.     end
  362.     inc = 0
  363. end
  364.  
  365. GetWood()
  366.  
  367. local stored = {}
  368.  
  369. function isStored(bp)
  370.     for i,v in pairs(stored) do
  371.         if v == bp then
  372.             return false
  373.         end
  374.     end
  375.     return true
  376. end
  377.  
  378. function getBP(position,name)
  379.     for i,Model in pairs(workspace.PlayerModels:GetChildren()) do
  380.         if Model:FindFirstChild("Type") and Model.Name == name and Model.Type.Value == "Blueprint" and Model.Owner.Value == Player and isStored(Model) then
  381.             table.insert(stored,Model)
  382.                 return Model
  383.         end
  384.     end
  385. end
  386.  
  387. function CreateBlueprint(ItemName, Position)
  388.     game.ReplicatedStorage.PlaceStructure.ClientPlacedBlueprint:FireServer(ItemName, Position - Vector3.new(0,50,0), Player)
  389. end
  390.  
  391. PlaceS = game.ReplicatedStorage.PlaceStructure.ClientPlacedStructure
  392.  
  393.  
  394. function getColorTag(bp)
  395.     for i,v in pairs(bp:GetDescendants()) do
  396.         if v.Name == "COLORTAG" then
  397.             return v.Value
  398.         end
  399.     end
  400.     return nil
  401. end
  402.  
  403. function toCF(str)
  404. return(CFrame.new(str:match("(.+),(.+),(.+),(.+),(.+),(.+),(.+),(.+),(.+),(.+),(.+),(.+)")))
  405. end
  406.  
  407. function toVec(str)
  408. return(Vector3.new(str:match("(.+),(.+),(.+)")))
  409. end
  410.  
  411. function import(pasteb,pos)
  412. local Data = workspace.PreviewM
  413. local head = Player.Character.Head.CFrame
  414. local WoodName = TreeType.Text
  415. for i, Blueprint in pairs(Data:GetChildren()) do
  416.     print(Blueprint.Name)
  417.     if Blueprint.Name == "Part" then
  418.    
  419.     else
  420.     print()
  421.     local BPThing = CreateBlueprint(Blueprint.Name, head)
  422.     if not SpeedV then
  423.         wait()
  424.     end
  425.     end
  426. end
  427. wait(5)
  428. for i, Blueprint in pairs(Data:GetChildren()) do
  429.     if Blueprint.Name ~= "Part" then
  430.     if Blueprint.PrimaryPart ~= nil then
  431.     local BPThing = getBP(head, Blueprint.Name)
  432.     if BPThing == nil then
  433.             warn(Blueprint.Name .. " failed to place.")
  434.     else
  435.     wait(.05)
  436.     PlaceS:FireServer(Blueprint.Name, Blueprint.PrimaryPart.CFrame, Player, WoodName, BPThing, nil)
  437.     if not SpeedV then
  438.         wait()
  439.     end
  440.     end
  441.     end
  442.     end
  443.     end
  444. end
  445.  
  446. function getColor(woodType)
  447.     for i,v in pairs(colors) do
  448.         if v[2] == woodType then
  449.             return v[1]
  450.         end
  451.     end
  452.     return BrickColor.new("Medium stone grey")
  453. end
  454.  
  455. function getColorWood(colorType)
  456.     for i,v in pairs(colors) do
  457.         if v[1] == BrickColor.new(colorType) then
  458.             return tostring(v[2])
  459.         end
  460.     end
  461.     return "Generic"
  462. end
  463.  
  464. function preview(id,pos)
  465.     if workspace:FindFirstChild("PreviewM") then
  466.         workspace.PreviewM:Destroy()
  467.     end
  468.     if id == nil then
  469.         return
  470.     end
  471.     local ModelPreview = Instance.new("Model")
  472.     local ImportingID = game:GetObjects("rbxassetid://" .. id)[1]
  473.     for i,v in pairs(ImportingID:GetDescendants()) do
  474.         if v:FindFirstChild("Main") then
  475.             print(v)
  476.             v.Parent = ModelPreview
  477.             if v:FindFirstChild("BuildDependentWood") then
  478.             local st = Instance.new("StringValue")
  479.             st.Name = "COLORTAG"
  480.             st.Value = getColorWood(tostring(v.BuildDependentWood.BrickColor))
  481.             warn("GOT: " .. st.Value)
  482.             st.Parent = v
  483.             v.PrimaryPart = v.Main
  484.             for i,e in pairs(v:GetChildren()) do
  485.                 if e:IsA("BasePart") then
  486.                 e.BrickColor = v.BuildDependentWood.BrickColor
  487.                 e.Transparency = 0.6
  488.                 e.CanCollide = false
  489.                 end
  490.             end
  491.         end
  492.     end
  493.     end
  494.         local c = Instance.new("Part")
  495.     c.Transparency = 0
  496.     c.Size = Vector3.new(1,1,1)
  497.     c.Anchored = true
  498.     c.CanCollide = false
  499.     c.CFrame = CFrame.new(ModelPreview:GetBoundingBox().X,ModelPreview:GetBoundingBox().Y - (ModelPreview:GetExtentsSize().Y / 2),ModelPreview:GetBoundingBox().Z)
  500.     c.Parent = ModelPreview
  501.     ModelPreview.PrimaryPart = c
  502.     ModelPreview:SetPrimaryPartCFrame(CFrame.new(Player.Character.Head.CFrame.X,Player.Character.Head.CFrame.Y - 5,Player.Character.Head.CFrame.Z))
  503.     ModelPreview.Name = "PreviewM"
  504.     ModelPreview.Parent = workspace
  505. end
  506.  
  507. function rotate(direction)
  508. if direction == "left" then
  509. workspace.PreviewM:SetPrimaryPartCFrame(workspace.PreviewM.PrimaryPart.CFrame * CFrame.Angles(0, math.rad(-90), 0))
  510. elseif direction == "right" then
  511. workspace.PreviewM:SetPrimaryPartCFrame(workspace.PreviewM.PrimaryPart.CFrame * CFrame.Angles(0, math.rad(90), 0))
  512. end
  513. end
  514.  
  515. function raise(direction)
  516. if direction == "up" then
  517. workspace.PreviewM:SetPrimaryPartCFrame(workspace.PreviewM.PrimaryPart.CFrame + Vector3.new(0,(offSet.Text),0))
  518. elseif direction == "down" then
  519. workspace.PreviewM:SetPrimaryPartCFrame(workspace.PreviewM.PrimaryPart.CFrame - Vector3.new(0,(offSet.Text),0))
  520. end
  521. end
  522.  
  523. Import.MouseButton1Click:Connect(function()
  524. if selectArt ~= "" then
  525. ArtFrame.Visible = false
  526. local artStyle = tostring(selectArt)
  527. warn("Loading Art: " .. selectArt)
  528. SpawnFrame.Visible = true
  529. preview(artStyle,Player.Character.Head.Position)
  530. else
  531.     warn("Cannot continue if no art is selected.")
  532. end
  533. end)
  534.  
  535. URL.FocusLost:Connect(function()
  536.     if URL.Text == "" or tonumber(URL.Text) == nil then
  537.         return
  538.     end
  539.     selectArt = URL.Text
  540.     Import.Text = "Import: "..URL.Text
  541. end)
  542.  
  543. Spawn.MouseButton1Click:Connect(function()
  544.     import()
  545.     artStyle = nil
  546.     Import.Text = "Import Art"
  547.     Spawn.Text = "Spawn Art"
  548.     selectArt = ""
  549.     ArtFrame.Visible = true
  550.     preview(nil)
  551.     SpawnFrame.Visible = false
  552. end)
  553.  
  554. rotationLeft.MouseButton1Click:Connect(function()
  555.     rotate("left")
  556. end)
  557. rotationRight.MouseButton1Click:Connect(function()
  558.     rotate("right")
  559. end)
  560.  
  561. offsetUp.MouseButton1Click:Connect(function()
  562.     raise("up")
  563. end)
  564.  
  565. offsetDown.MouseButton1Click:Connect(function()
  566.     raise("down")
  567. end)
  568.  
  569. Back.MouseButton1Click:Connect(function()
  570.     artStyle = nil
  571.     Import.Text = "Import Art"
  572.     Spawn.Text = "Spawn Art"
  573.     selectArt = ""
  574.     ArtFrame.Visible = true
  575.     preview(nil,nil)
  576.     SpawnFrame.Visible = false
  577. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement