Advertisement
Upscalefanatic3

[FE] Paint Script (Voidacity)

Jun 22nd, 2019
803
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. -- This script has been converted to FE by iPxter
  2.  
  3.  
  4. if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
  5. local Player,Mouse,mouse,UserInputService,ContextActionService = owner
  6. do
  7. print("FE Compatibility code by Mokiros | Translated to FE by iPxter")
  8. script.Parent = Player.Character
  9.  
  10. --RemoteEvent for communicating
  11. local Event = Instance.new("RemoteEvent")
  12. Event.Name = "UserInput_Event"
  13.  
  14. --Fake event to make stuff like Mouse.KeyDown work
  15. local function fakeEvent()
  16. local t = {_fakeEvent=true,Connect=function(self,f)self.Function=f end}
  17. t.connect = t.Connect
  18. return t
  19. end
  20.  
  21. --Creating fake input objects with fake variables
  22. local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()}
  23. local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
  24. local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
  25. CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
  26. end}
  27. --Merged 2 functions into one by checking amount of arguments
  28. CAS.UnbindAction = CAS.BindAction
  29.  
  30. --This function will trigger the events that have been :Connect()'ed
  31. local function te(self,ev,...)
  32. local t = m[ev]
  33. if t and t._fakeEvent and t.Function then
  34. t.Function(...)
  35. end
  36. end
  37. m.TrigEvent = te
  38. UIS.TrigEvent = te
  39.  
  40. Event.OnServerEvent:Connect(function(plr,io)
  41. if plr~=Player then return end
  42. if io.isMouse then
  43. m.Target = io.Target
  44. m.Hit = io.Hit
  45. else
  46. local b = io.UserInputState == Enum.UserInputState.Begin
  47. if io.UserInputType == Enum.UserInputType.MouseButton1 then
  48. return m:TrigEvent(b and "Button1Down" or "Button1Up")
  49. end
  50. for _,t in pairs(CAS.Actions) do
  51. for _,k in pairs(t.Keys) do
  52. if k==io.KeyCode then
  53. t.Function(t.Name,io.UserInputState,io)
  54. end
  55. end
  56. end
  57. m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower())
  58. UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false)
  59. end
  60. end)
  61. Event.Parent = NLS([==[
  62. local Player = game:GetService("Players").LocalPlayer
  63. local Event = script:WaitForChild("UserInput_Event")
  64.  
  65. local UIS = game:GetService("UserInputService")
  66. local input = function(io,a)
  67. if a then return end
  68. --Since InputObject is a client-side instance, we create and pass table instead
  69. Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState})
  70. end
  71. UIS.InputBegan:Connect(input)
  72. UIS.InputEnded:Connect(input)
  73.  
  74. local Mouse = Player:GetMouse()
  75. local h,t
  76. --Give the server mouse data 30 times every second, but only if the values changed
  77. --If player is not moving their mouse, client won't fire events
  78. while wait(1/30) do
  79. if h~=Mouse.Hit or t~=Mouse.Target then
  80. h,t=Mouse.Hit,Mouse.Target
  81. Event:FireServer({isMouse=true,Target=t,Hit=h})
  82. end
  83. end]==],Player.Character)
  84. Mouse,mouse,UserInputService,ContextActionService = m,m,UIS,CAS
  85. end
  86.  
  87.  
  88. -- Instances:
  89. local ColorPicker = Instance.new("ScreenGui")
  90. local ChangeColor = Instance.new("Frame")
  91. local CurrentColor = Instance.new("ImageButton")
  92. local Picker = Instance.new("ScrollingFrame")
  93. local Birch = Instance.new("ImageButton")
  94. local DropShadow = Instance.new("Frame")
  95. local Grey = Instance.new("ImageButton")
  96. local DropShadow_2 = Instance.new("Frame")
  97. local Walnut = Instance.new("ImageButton")
  98. local DropShadow_3 = Instance.new("Frame")
  99. local Generic = Instance.new("ImageButton")
  100. local DropShadow_4 = Instance.new("Frame")
  101. local Oak = Instance.new("ImageButton")
  102. local DropShadow_5 = Instance.new("Frame")
  103. local Pine = Instance.new("ImageButton")
  104. local DropShadow_6 = Instance.new("Frame")
  105. local Palm = Instance.new("ImageButton")
  106. local DropShadow_7 = Instance.new("Frame")
  107. local Cherry = Instance.new("ImageButton")
  108. local DropShadow_8 = Instance.new("Frame")
  109. local Koa = Instance.new("ImageButton")
  110. local DropShadow_9 = Instance.new("Frame")
  111. local Volcano = Instance.new("ImageButton")
  112. local DropShadow_10 = Instance.new("Frame")
  113. local GreenSwampy = Instance.new("ImageButton")
  114. local DropShadow_11 = Instance.new("Frame")
  115. local GoldSwampy = Instance.new("ImageButton")
  116. local DropShadow_12 = Instance.new("Frame")
  117. local GenericSpecial = Instance.new("ImageButton")
  118. local DropShadow_13 = Instance.new("Frame")
  119. local SnowGlow = Instance.new("ImageButton")
  120. local DropShadow_14 = Instance.new("Frame")
  121. local Frost = Instance.new("ImageButton")
  122. local DropShadow_15 = Instance.new("Frame")
  123. local CaveCrawler = Instance.new("ImageButton")
  124. local DropShadow_16 = Instance.new("Frame")
  125. local LoneCave = Instance.new("ImageButton")
  126. local DropShadow_17 = Instance.new("Frame")
  127. local Spooky = Instance.new("ImageButton")
  128. local DropShadow_18 = Instance.new("Frame")
  129. local SpookyNeon = Instance.new("ImageButton")
  130. local DropShadow_19 = Instance.new("Frame")
  131. --Properties:
  132. ColorPicker.Name = "ColorPicker"
  133. ColorPicker.Parent = owner:WaitForChild("PlayerGui")
  134.  
  135. ChangeColor.Name = "ChangeColor"
  136. ChangeColor.Parent = ColorPicker
  137. ChangeColor.BackgroundColor3 = Color3.new(0.176471, 0.254902, 0.427451)
  138. ChangeColor.BorderColor3 = Color3.new(0, 0, 0)
  139. ChangeColor.BorderSizePixel = 2
  140. ChangeColor.Position = UDim2.new(0, 10, 1, -110)
  141. ChangeColor.Size = UDim2.new(0, 100, 0, 100)
  142. ChangeColor.ZIndex = 2
  143. ColorPicker.Enabled = false
  144.  
  145. CurrentColor.Name = "CurrentColor"
  146. CurrentColor.Parent = ChangeColor
  147. CurrentColor.BackgroundColor3 = Color3.new(0.176471, 0.254902, 0.427451)
  148. CurrentColor.BorderColor3 = Color3.new(0, 0, 0)
  149. CurrentColor.BorderSizePixel = 2
  150. CurrentColor.Position = UDim2.new(0, 10, 0, 10)
  151. CurrentColor.Size = UDim2.new(0, 80, 0, 80)
  152. CurrentColor.ZIndex = 2
  153. CurrentColor.Image = "rbxassetid://2712547918"
  154. CurrentColor.ScaleType = Enum.ScaleType.Crop
  155.  
  156. Picker.Name = "Picker"
  157. Picker.Parent = ColorPicker
  158. Picker.BackgroundColor3 = Color3.new(0.176471, 0.254902, 0.427451)
  159. Picker.BorderColor3 = Color3.new(0, 0, 0)
  160. Picker.BorderSizePixel = 2
  161. Picker.Position = UDim2.new(0, 10, 1, -320)
  162. Picker.Size = UDim2.new(0, 100, 0, 200)
  163. Picker.CanvasPosition = Vector2.new(0, 700)
  164. Picker.CanvasSize = UDim2.new(0, 0, 0, 900)
  165. Picker.ScrollBarThickness = 7
  166. Picker.VerticalScrollBarPosition = Enum.VerticalScrollBarPosition.Left
  167. Picker.Visible = false
  168.  
  169. Birch.Name = "Birch"
  170. Birch.Parent = Picker
  171. Birch.BackgroundColor3 = Color3.new(1, 1, 1)
  172. Birch.BorderColor3 = Color3.new(0, 0, 0)
  173. Birch.Position = UDim2.new(0, 10, 0, 5)
  174. Birch.Size = UDim2.new(0, 80, 0, 40)
  175. Birch.ZIndex = 3
  176. Birch.Image = "rbxassetid://2712547918"
  177. Birch.ScaleType = Enum.ScaleType.Crop
  178.  
  179. DropShadow.Name = "DropShadow"
  180. DropShadow.Parent = Birch
  181. DropShadow.BackgroundColor3 = Color3.new(0, 0, 0)
  182. DropShadow.BorderSizePixel = 0
  183. DropShadow.Position = UDim2.new(0, 4, 0, 4)
  184. DropShadow.Size = UDim2.new(1, 0, 1, 0)
  185. DropShadow.ZIndex = 2
  186.  
  187. Grey.Name = "Grey"
  188. Grey.Parent = Picker
  189. Grey.BackgroundColor3 = Color3.new(1, 1, 1)
  190. Grey.BorderColor3 = Color3.new(0, 0, 0)
  191. Grey.Position = UDim2.new(0, 10, 0, 55)
  192. Grey.Size = UDim2.new(0, 80, 0, 40)
  193. Grey.ZIndex = 3
  194. Grey.Image = "rbxassetid://924320031"
  195. Grey.ScaleType = Enum.ScaleType.Crop
  196.  
  197. DropShadow_2.Name = "DropShadow"
  198. DropShadow_2.Parent = Grey
  199. DropShadow_2.BackgroundColor3 = Color3.new(0, 0, 0)
  200. DropShadow_2.BorderSizePixel = 0
  201. DropShadow_2.Position = UDim2.new(0, 4, 0, 4)
  202. DropShadow_2.Size = UDim2.new(1, 0, 1, 0)
  203. DropShadow_2.ZIndex = 2
  204.  
  205. Walnut.Name = "Walnut"
  206. Walnut.Parent = Picker
  207. Walnut.BackgroundColor3 = Color3.new(1, 1, 1)
  208. Walnut.BorderColor3 = Color3.new(0, 0, 0)
  209. Walnut.Position = UDim2.new(0, 10, 0, 105)
  210. Walnut.Size = UDim2.new(0, 80, 0, 40)
  211. Walnut.ZIndex = 3
  212. Walnut.Image = "rbxassetid://2712559790"
  213. Walnut.ScaleType = Enum.ScaleType.Crop
  214.  
  215. DropShadow_3.Name = "DropShadow"
  216. DropShadow_3.Parent = Walnut
  217. DropShadow_3.BackgroundColor3 = Color3.new(0, 0, 0)
  218. DropShadow_3.BorderSizePixel = 0
  219. DropShadow_3.Position = UDim2.new(0, 4, 0, 4)
  220. DropShadow_3.Size = UDim2.new(1, 0, 1, 0)
  221. DropShadow_3.ZIndex = 2
  222.  
  223. Generic.Name = "Generic"
  224. Generic.Parent = Picker
  225. Generic.BackgroundColor3 = Color3.new(1, 1, 1)
  226. Generic.BorderColor3 = Color3.new(0, 0, 0)
  227. Generic.Position = UDim2.new(0, 10, 0, 155)
  228. Generic.Size = UDim2.new(0, 80, 0, 40)
  229. Generic.ZIndex = 3
  230. Generic.Image = "rbxassetid://2712568624"
  231. Generic.ScaleType = Enum.ScaleType.Crop
  232.  
  233. DropShadow_4.Name = "DropShadow"
  234. DropShadow_4.Parent = Generic
  235. DropShadow_4.BackgroundColor3 = Color3.new(0, 0, 0)
  236. DropShadow_4.BorderSizePixel = 0
  237. DropShadow_4.Position = UDim2.new(0, 4, 0, 4)
  238. DropShadow_4.Size = UDim2.new(1, 0, 1, 0)
  239. DropShadow_4.ZIndex = 2
  240.  
  241. Oak.Name = "Oak"
  242. Oak.Parent = Picker
  243. Oak.BackgroundColor3 = Color3.new(1, 1, 1)
  244. Oak.BorderColor3 = Color3.new(0, 0, 0)
  245. Oak.Position = UDim2.new(0, 10, 0, 205)
  246. Oak.Size = UDim2.new(0, 80, 0, 40)
  247. Oak.ZIndex = 3
  248. Oak.Image = "rbxassetid://2712579185"
  249. Oak.ScaleType = Enum.ScaleType.Crop
  250.  
  251. DropShadow_5.Name = "DropShadow"
  252. DropShadow_5.Parent = Oak
  253. DropShadow_5.BackgroundColor3 = Color3.new(0, 0, 0)
  254. DropShadow_5.BorderSizePixel = 0
  255. DropShadow_5.Position = UDim2.new(0, 4, 0, 4)
  256. DropShadow_5.Size = UDim2.new(1, 0, 1, 0)
  257. DropShadow_5.ZIndex = 2
  258.  
  259. Pine.Name = "Pine"
  260. Pine.Parent = Picker
  261. Pine.BackgroundColor3 = Color3.new(1, 1, 1)
  262. Pine.BorderColor3 = Color3.new(0, 0, 0)
  263. Pine.Position = UDim2.new(0, 10, 0, 255)
  264. Pine.Size = UDim2.new(0, 80, 0, 40)
  265. Pine.ZIndex = 3
  266. Pine.Image = "rbxassetid://2712591183"
  267. Pine.ScaleType = Enum.ScaleType.Crop
  268.  
  269. DropShadow_6.Name = "DropShadow"
  270. DropShadow_6.Parent = Pine
  271. DropShadow_6.BackgroundColor3 = Color3.new(0, 0, 0)
  272. DropShadow_6.BorderSizePixel = 0
  273. DropShadow_6.Position = UDim2.new(0, 4, 0, 4)
  274. DropShadow_6.Size = UDim2.new(1, 0, 1, 0)
  275. DropShadow_6.ZIndex = 2
  276.  
  277. Palm.Name = "Palm"
  278. Palm.Parent = Picker
  279. Palm.BackgroundColor3 = Color3.new(1, 1, 1)
  280. Palm.BorderColor3 = Color3.new(0, 0, 0)
  281. Palm.Position = UDim2.new(0, 10, 0, 305)
  282. Palm.Size = UDim2.new(0, 80, 0, 40)
  283. Palm.ZIndex = 3
  284. Palm.Image = "rbxassetid://2712597395"
  285. Palm.ScaleType = Enum.ScaleType.Crop
  286.  
  287. DropShadow_7.Name = "DropShadow"
  288. DropShadow_7.Parent = Palm
  289. DropShadow_7.BackgroundColor3 = Color3.new(0, 0, 0)
  290. DropShadow_7.BorderSizePixel = 0
  291. DropShadow_7.Position = UDim2.new(0, 4, 0, 4)
  292. DropShadow_7.Size = UDim2.new(1, 0, 1, 0)
  293. DropShadow_7.ZIndex = 2
  294.  
  295. Cherry.Name = "Cherry"
  296. Cherry.Parent = Picker
  297. Cherry.BackgroundColor3 = Color3.new(1, 1, 1)
  298. Cherry.BorderColor3 = Color3.new(0, 0, 0)
  299. Cherry.Position = UDim2.new(0, 10, 0, 355)
  300. Cherry.Size = UDim2.new(0, 80, 0, 40)
  301. Cherry.ZIndex = 3
  302. Cherry.Image = "rbxassetid://2712608599"
  303. Cherry.ScaleType = Enum.ScaleType.Crop
  304.  
  305. DropShadow_8.Name = "DropShadow"
  306. DropShadow_8.Parent = Cherry
  307. DropShadow_8.BackgroundColor3 = Color3.new(0, 0, 0)
  308. DropShadow_8.BorderSizePixel = 0
  309. DropShadow_8.Position = UDim2.new(0, 4, 0, 4)
  310. DropShadow_8.Size = UDim2.new(1, 0, 1, 0)
  311. DropShadow_8.ZIndex = 2
  312.  
  313. Koa.Name = "Koa"
  314. Koa.Parent = Picker
  315. Koa.BackgroundColor3 = Color3.new(1, 1, 1)
  316. Koa.BorderColor3 = Color3.new(0, 0, 0)
  317. Koa.Position = UDim2.new(0, 10, 0, 355)
  318. Koa.Size = UDim2.new(0, 80, 0, 40)
  319. Koa.ZIndex = 3
  320. Koa.Image = "rbxassetid://2712612798"
  321. Koa.ScaleType = Enum.ScaleType.Crop
  322.  
  323. DropShadow_9.Name = "DropShadow"
  324. DropShadow_9.Parent = Koa
  325. DropShadow_9.BackgroundColor3 = Color3.new(0, 0, 0)
  326. DropShadow_9.BorderSizePixel = 0
  327. DropShadow_9.Position = UDim2.new(0, 4, 0, 4)
  328. DropShadow_9.Size = UDim2.new(1, 0, 1, 0)
  329. DropShadow_9.ZIndex = 2
  330.  
  331. Volcano.Name = "Volcano"
  332. Volcano.Parent = Picker
  333. Volcano.BackgroundColor3 = Color3.new(1, 1, 1)
  334. Volcano.BorderColor3 = Color3.new(0, 0, 0)
  335. Volcano.Position = UDim2.new(0, 10, 0, 405)
  336. Volcano.Size = UDim2.new(0, 80, 0, 40)
  337. Volcano.ZIndex = 3
  338. Volcano.Image = "rbxassetid://2712618609"
  339. Volcano.ScaleType = Enum.ScaleType.Crop
  340.  
  341. DropShadow_10.Name = "DropShadow"
  342. DropShadow_10.Parent = Volcano
  343. DropShadow_10.BackgroundColor3 = Color3.new(0, 0, 0)
  344. DropShadow_10.BorderSizePixel = 0
  345. DropShadow_10.Position = UDim2.new(0, 4, 0, 4)
  346. DropShadow_10.Size = UDim2.new(1, 0, 1, 0)
  347. DropShadow_10.ZIndex = 2
  348.  
  349. GreenSwampy.Name = "GreenSwampy"
  350. GreenSwampy.Parent = Picker
  351. GreenSwampy.BackgroundColor3 = Color3.new(1, 1, 1)
  352. GreenSwampy.BorderColor3 = Color3.new(0, 0, 0)
  353. GreenSwampy.Position = UDim2.new(0, 10, 0, 455)
  354. GreenSwampy.Size = UDim2.new(0, 80, 0, 40)
  355. GreenSwampy.ZIndex = 3
  356. GreenSwampy.Image = "rbxassetid://2712623896"
  357. GreenSwampy.ScaleType = Enum.ScaleType.Crop
  358.  
  359. DropShadow_11.Name = "DropShadow"
  360. DropShadow_11.Parent = GreenSwampy
  361. DropShadow_11.BackgroundColor3 = Color3.new(0, 0, 0)
  362. DropShadow_11.BorderSizePixel = 0
  363. DropShadow_11.Position = UDim2.new(0, 4, 0, 4)
  364. DropShadow_11.Size = UDim2.new(1, 0, 1, 0)
  365. DropShadow_11.ZIndex = 2
  366.  
  367. GoldSwampy.Name = "GoldSwampy"
  368. GoldSwampy.Parent = Picker
  369. GoldSwampy.BackgroundColor3 = Color3.new(1, 1, 1)
  370. GoldSwampy.BorderColor3 = Color3.new(0, 0, 0)
  371. GoldSwampy.Position = UDim2.new(0, 10, 0, 505)
  372. GoldSwampy.Size = UDim2.new(0, 80, 0, 40)
  373. GoldSwampy.ZIndex = 3
  374. GoldSwampy.Image = "rbxassetid://2712631457"
  375. GoldSwampy.ScaleType = Enum.ScaleType.Crop
  376.  
  377. DropShadow_12.Name = "DropShadow"
  378. DropShadow_12.Parent = GoldSwampy
  379. DropShadow_12.BackgroundColor3 = Color3.new(0, 0, 0)
  380. DropShadow_12.BorderSizePixel = 0
  381. DropShadow_12.Position = UDim2.new(0, 4, 0, 4)
  382. DropShadow_12.Size = UDim2.new(1, 0, 1, 0)
  383. DropShadow_12.ZIndex = 2
  384.  
  385. GenericSpecial.Name = "GenericSpecial"
  386. GenericSpecial.Parent = Picker
  387. GenericSpecial.BackgroundColor3 = Color3.new(1, 1, 1)
  388. GenericSpecial.BorderColor3 = Color3.new(0, 0, 0)
  389. GenericSpecial.Position = UDim2.new(0, 10, 0, 555)
  390. GenericSpecial.Size = UDim2.new(0, 80, 0, 40)
  391. GenericSpecial.ZIndex = 3
  392. GenericSpecial.Image = "rbxassetid://2712639396"
  393. GenericSpecial.ScaleType = Enum.ScaleType.Crop
  394.  
  395. DropShadow_13.Name = "DropShadow"
  396. DropShadow_13.Parent = GenericSpecial
  397. DropShadow_13.BackgroundColor3 = Color3.new(0, 0, 0)
  398. DropShadow_13.BorderSizePixel = 0
  399. DropShadow_13.Position = UDim2.new(0, 4, 0, 4)
  400. DropShadow_13.Size = UDim2.new(1, 0, 1, 0)
  401. DropShadow_13.ZIndex = 2
  402.  
  403. SnowGlow.Name = "SnowGlow"
  404. SnowGlow.Parent = Picker
  405. SnowGlow.BackgroundColor3 = Color3.new(1, 1, 1)
  406. SnowGlow.BorderColor3 = Color3.new(0, 0, 0)
  407. SnowGlow.Position = UDim2.new(0, 10, 0, 605)
  408. SnowGlow.Size = UDim2.new(0, 80, 0, 40)
  409. SnowGlow.ZIndex = 3
  410. SnowGlow.Image = "rbxassetid://2712651454"
  411. SnowGlow.ScaleType = Enum.ScaleType.Crop
  412.  
  413. DropShadow_14.Name = "DropShadow"
  414. DropShadow_14.Parent = SnowGlow
  415. DropShadow_14.BackgroundColor3 = Color3.new(0, 0, 0)
  416. DropShadow_14.BorderSizePixel = 0
  417. DropShadow_14.Position = UDim2.new(0, 4, 0, 4)
  418. DropShadow_14.Size = UDim2.new(1, 0, 1, 0)
  419. DropShadow_14.ZIndex = 2
  420.  
  421. Frost.Name = "Frost"
  422. Frost.Parent = Picker
  423. Frost.BackgroundColor3 = Color3.new(1, 1, 1)
  424. Frost.BorderColor3 = Color3.new(0, 0, 0)
  425. Frost.Position = UDim2.new(0, 10, 0, 655)
  426. Frost.Size = UDim2.new(0, 80, 0, 40)
  427. Frost.ZIndex = 3
  428. Frost.Image = "rbxassetid://2712667804"
  429. Frost.ScaleType = Enum.ScaleType.Crop
  430.  
  431. DropShadow_15.Name = "DropShadow"
  432. DropShadow_15.Parent = Frost
  433. DropShadow_15.BackgroundColor3 = Color3.new(0, 0, 0)
  434. DropShadow_15.BorderSizePixel = 0
  435. DropShadow_15.Position = UDim2.new(0, 4, 0, 4)
  436. DropShadow_15.Size = UDim2.new(1, 0, 1, 0)
  437. DropShadow_15.ZIndex = 2
  438.  
  439. CaveCrawler.Name = "CaveCrawler"
  440. CaveCrawler.Parent = Picker
  441. CaveCrawler.BackgroundColor3 = Color3.new(1, 1, 1)
  442. CaveCrawler.BorderColor3 = Color3.new(0, 0, 0)
  443. CaveCrawler.Position = UDim2.new(0, 10, 0, 705)
  444. CaveCrawler.Size = UDim2.new(0, 80, 0, 40)
  445. CaveCrawler.ZIndex = 3
  446. CaveCrawler.Image = "rbxassetid://2712673980"
  447. CaveCrawler.ScaleType = Enum.ScaleType.Crop
  448.  
  449. DropShadow_16.Name = "DropShadow"
  450. DropShadow_16.Parent = CaveCrawler
  451. DropShadow_16.BackgroundColor3 = Color3.new(0, 0, 0)
  452. DropShadow_16.BorderSizePixel = 0
  453. DropShadow_16.Position = UDim2.new(0, 4, 0, 4)
  454. DropShadow_16.Size = UDim2.new(1, 0, 1, 0)
  455. DropShadow_16.ZIndex = 2
  456.  
  457. LoneCave.Name = "LoneCave"
  458. LoneCave.Parent = Picker
  459. LoneCave.BackgroundColor3 = Color3.new(1, 1, 1)
  460. LoneCave.BorderColor3 = Color3.new(0, 0, 0)
  461. LoneCave.Position = UDim2.new(0, 10, 0, 755)
  462. LoneCave.Size = UDim2.new(0, 80, 0, 40)
  463. LoneCave.ZIndex = 3
  464. LoneCave.Image = "rbxassetid://2712693147"
  465. LoneCave.ScaleType = Enum.ScaleType.Crop
  466.  
  467. DropShadow_17.Name = "DropShadow"
  468. DropShadow_17.Parent = LoneCave
  469. DropShadow_17.BackgroundColor3 = Color3.new(0, 0, 0)
  470. DropShadow_17.BorderSizePixel = 0
  471. DropShadow_17.Position = UDim2.new(0, 4, 0, 4)
  472. DropShadow_17.Size = UDim2.new(1, 0, 1, 0)
  473. DropShadow_17.ZIndex = 2
  474.  
  475. Spooky.Name = "Spooky"
  476. Spooky.Parent = Picker
  477. Spooky.BackgroundColor3 = Color3.new(1, 1, 1)
  478. Spooky.BorderColor3 = Color3.new(0, 0, 0)
  479. Spooky.Position = UDim2.new(0, 10, 0, 805)
  480. Spooky.Size = UDim2.new(0, 80, 0, 40)
  481. Spooky.ZIndex = 3
  482. Spooky.Image = "rbxassetid://2712696822"
  483. Spooky.ScaleType = Enum.ScaleType.Crop
  484.  
  485. DropShadow_18.Name = "DropShadow"
  486. DropShadow_18.Parent = Spooky
  487. DropShadow_18.BackgroundColor3 = Color3.new(0, 0, 0)
  488. DropShadow_18.BorderSizePixel = 0
  489. DropShadow_18.Position = UDim2.new(0, 4, 0, 4)
  490. DropShadow_18.Size = UDim2.new(1, 0, 1, 0)
  491. DropShadow_18.ZIndex = 2
  492.  
  493. SpookyNeon.Name = "SpookyNeon"
  494. SpookyNeon.Parent = Picker
  495. SpookyNeon.BackgroundColor3 = Color3.new(1, 1, 1)
  496. SpookyNeon.BorderColor3 = Color3.new(0, 0, 0)
  497. SpookyNeon.Position = UDim2.new(0, 10, 0, 855)
  498. SpookyNeon.Size = UDim2.new(0, 80, 0, 40)
  499. SpookyNeon.ZIndex = 3
  500. SpookyNeon.Image = "rbxassetid://2712700047"
  501. SpookyNeon.ScaleType = Enum.ScaleType.Crop
  502.  
  503. DropShadow_19.Name = "DropShadow"
  504. DropShadow_19.Parent = SpookyNeon
  505. DropShadow_19.BackgroundColor3 = Color3.new(0, 0, 0)
  506. DropShadow_19.BorderSizePixel = 0
  507. DropShadow_19.Position = UDim2.new(0, 4, 0, 4)
  508. DropShadow_19.Size = UDim2.new(1, 0, 1, 0)
  509. DropShadow_19.ZIndex = 2
  510. -- Scripts:
  511. woodtype = "Birch"
  512.  
  513.  
  514. print("Hello world!")
  515. -- params : ...
  516.  
  517. wait(0.016666666666667)
  518. script.Name = "Paint"
  519. local Player = owner
  520. local Character = Player.Character
  521. --[[
  522. repeat
  523. wait()
  524. until game:GetService("ReplicatedStorage"):FindFirstChild("ScopeGui")
  525. game:GetService("ReplicatedStorage"):FindFirstChild("ScopeGui"):Clone().Parent = Player.PlayerGui
  526. ]]
  527.  
  528. local tool = Instance.new("Tool", owner.Backpack)
  529. tool.RequiresHandle = false
  530. --tool.RobloxLocked = true
  531. tool.Name = "Paint"
  532. tool.ToolTip = "Changes A Stucture's Wood Type"
  533. tool.Equipped:connect(function(Mouse)
  534. ColorPicker.Enabled = true
  535. Mouse.Button1Down:connect(function()
  536. if Mouse.Target.Parent:FindFirstChild("Type") or Mouse.Target.Parent:FindFirstChild("BlueprintWoodClass") then
  537. local Cframe
  538. if Mouse.Target.Parent:FindFirstChild("MainCFrame") then
  539. Cframe = Mouse.Target.Parent.MainCFrame.Value
  540. else
  541. Cframe = Mouse.Target.Parent.PrimaryPart.CFrame
  542. end
  543. if Mouse.Target.Parent ~= nil then
  544. game.ReplicatedStorage.PlaceStructure.ClientPlacedStructure:FireServer(Mouse.Target.Parent.ItemName.Value, Cframe, owner, woodtype, Mouse.Target.Parent, false)
  545. end
  546. else
  547. --do nothing
  548. end
  549. end)
  550. end)
  551.  
  552. tool.Unequipped:connect(function(mouse)
  553. ColorPicker.Enabled = false
  554. end)
  555.  
  556.  
  557. Birch.MouseButton1Click:Connect(function()
  558. CurrentColor.Image = Birch.Image
  559. woodtype = "Birch"
  560. end)
  561.  
  562. Grey.MouseButton1Click:Connect(function()
  563. CurrentColor.Image = Grey.Image
  564. woodtype = nil
  565. end)
  566.  
  567. Walnut.MouseButton1Click:Connect(function()
  568. CurrentColor.Image = Walnut.Image
  569. woodtype = "Walnut"
  570. end)
  571.  
  572. Generic.MouseButton1Click:Connect(function()
  573. CurrentColor.Image = Generic.Image
  574. woodtype = "Generic"
  575. end)
  576.  
  577. Oak.MouseButton1Click:Connect(function()
  578. CurrentColor.Image = Oak.Image
  579. woodtype = "Oak"
  580. end)
  581.  
  582. Pine.MouseButton1Click:Connect(function()
  583. CurrentColor.Image = Pine.Image
  584. woodtype = "Pine"
  585. end)
  586.  
  587. Palm.MouseButton1Click:Connect(function()
  588. CurrentColor.Image = Palm.Image
  589. woodtype = "Palm"
  590. end)
  591.  
  592. Koa.MouseButton1Click:Connect(function()
  593. CurrentColor.Image = Koa.Image
  594. woodtype = "Koa"
  595. end)
  596.  
  597. Volcano.MouseButton1Click:Connect(function()
  598. CurrentColor.Image = Volcano.Image
  599. woodtype = "Volcano"
  600. end)
  601.  
  602. GreenSwampy.MouseButton1Click:Connect(function()
  603. CurrentColor.Image = GreenSwampy.Image
  604. woodtype = "GreenSwampy"
  605. end)
  606.  
  607. GoldSwampy.MouseButton1Click:Connect(function()
  608. CurrentColor.Image = GoldSwampy.Image
  609. woodtype = "GoldSwampy"
  610. end)
  611.  
  612. GenericSpecial.MouseButton1Click:Connect(function()
  613. CurrentColor.Image = GenericSpecial.Image
  614. woodtype = "GenericSpecial"
  615. end)
  616.  
  617. SnowGlow.MouseButton1Click:Connect(function()
  618. CurrentColor.Image = SnowGlow.Image
  619. woodtype = "SnowGlow"
  620. end)
  621.  
  622. Frost.MouseButton1Click:Connect(function()
  623. CurrentColor.Image = Frost.Image
  624. woodtype = "Frost"
  625. end)
  626.  
  627. CaveCrawler.MouseButton1Click:Connect(function()
  628. CurrentColor.Image = CaveCrawler.Image
  629. woodtype = "CaveCrawler"
  630. end)
  631.  
  632. LoneCave.MouseButton1Click:Connect(function()
  633. CurrentColor.Image = LoneCave.Image
  634. woodtype = "LoneCave"
  635. end)
  636.  
  637. Spooky.MouseButton1Click:Connect(function()
  638. CurrentColor.Image = Spooky.Image
  639. woodtype = "Spooky"
  640. end)
  641.  
  642. SpookyNeon.MouseButton1Click:Connect(function()
  643. CurrentColor.Image = SpookyNeon.Image
  644. woodtype = "SpookyNeon"
  645. end)
  646.  
  647. --bring up menu
  648. CurrentColor.MouseButton1Click:Connect(function()
  649. if Picker.Visible == false then
  650. Picker.Visible = true
  651. else
  652. Picker.Visible = false
  653. end
  654. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement