Advertisement
Thefrozen106

This is the BEST drawing script so far..

Jun 8th, 2017
199
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 8.12 KB | None | 0 0
  1. ---Yes.. I mean it..
  2.  
  3. -- Objects
  4. MIDI = Instance.new("ScreenGui")
  5. Frame = Instance.new("Frame")
  6. ID = Instance.new("TextBox")
  7. Play = Instance.new("TextButton")
  8. Dark = Instance.new("TextButton")
  9. Bright = Instance.new("TextButton")
  10. Stop = Instance.new("TextButton")
  11. Hide = Instance.new("TextButton")
  12. Set = Instance.new("TextButton")
  13. BColor = Instance.new("TextBox")
  14. Random = Instance.new("TextButton")
  15. Material = Instance.new("TextBox")
  16. Trans = Instance.new("TextBox")
  17. sound = Instance.new("Sound",game.Players.LocalPlayer.Character.Torso)
  18. sound.Volume = 4
  19. sound.Looped = true
  20. BVal = "Deep orange"
  21. MVal = "Neon"
  22. TVal = 0
  23. Active = false
  24.  
  25. -- Properties
  26.  
  27. MIDI.Name = "MIDI"
  28. MIDI.Parent = game.Players.LocalPlayer.PlayerGui
  29.  
  30. Frame.Parent = MIDI
  31. Frame.Active = true
  32. Frame.BackgroundColor3 = Color3.new(0, 0, 0)
  33. Frame.BackgroundTransparency = 0.5799999833107
  34. Frame.BorderSizePixel = 0
  35. Frame.Draggable = true
  36. Frame.Position = UDim2.new(0, 300, 0, 50)
  37. Frame.Size = UDim2.new(0, 310, 0, 200)
  38.  
  39. ID.Name = "ID"
  40. ID.Parent = Frame
  41. ID.BackgroundColor3 = Color3.new(1, 1, 1)
  42. ID.BorderSizePixel = 0
  43. ID.Position = UDim2.new(0, 100, 0, 10)
  44. ID.Size = UDim2.new(0, 120, 0, 30)
  45. ID.Font = Enum.Font.Arcade
  46. ID.FontSize = Enum.FontSize.Size18
  47. ID.Text = "639837244"
  48. ID.TextColor3 = Color3.new(0, 0, 0)
  49. ID.TextSize = 18
  50.  
  51. Material.Name = "Material"
  52. Material.Parent = Frame
  53. Material.BackgroundColor3 = Color3.new(1, 1, 1)
  54. Material.BorderSizePixel = 0
  55. Material.Position = UDim2.new(0, 210, 0, 95)
  56. Material.Size = UDim2.new(0, 90, 0, 15)
  57. Material.Font = Enum.Font.Arcade
  58. Material.FontSize = Enum.FontSize.Size14
  59. Material.Text = "Neon"
  60. Material.TextSize = 14
  61.  
  62. Trans.Name = "Trans"
  63. Trans.Parent = Frame
  64. Trans.BackgroundColor3 = Color3.new(1, 1, 1)
  65. Trans.BorderSizePixel = 0
  66. Trans.Position = UDim2.new(0, 210, 0, 75)
  67. Trans.Size = UDim2.new(0, 90, 0, 15)
  68. Trans.Font = Enum.Font.Arcade
  69. Trans.FontSize = Enum.FontSize.Size14
  70. Trans.Text = "Transparency"
  71. Trans.TextSize = 14
  72.  
  73. Set.Name = "Set"
  74. Set.Parent = Frame
  75. Set.BackgroundColor3 = Color3.new(1, 1, 1)
  76. Set.BorderSizePixel = 0
  77. Set.Position = UDim2.new(0, 210, 0, 135)
  78. Set.Size = UDim2.new(0, 90, 0, 15)
  79. Set.Font = Enum.Font.Arcade
  80. Set.FontSize = Enum.FontSize.Size14
  81. Set.Text = "Set"
  82. Set.TextSize = 14
  83. Set.MouseButton1Down:connect(function()
  84. if Active == true then
  85. Active = false
  86. end
  87. BVal = tostring(BColor.Text)
  88. TVal = tonumber(Trans.Text)
  89. MVal = tostring(Material.Text)
  90. end)
  91.  
  92. BColor.Name = "BColor"
  93. BColor.Parent = Frame
  94. BColor.BackgroundColor3 = Color3.new(1, 1, 1)
  95. BColor.BorderSizePixel = 0
  96. BColor.Position = UDim2.new(0, 210, 0, 115)
  97. BColor.Size = UDim2.new(0, 90, 0, 15)
  98. BColor.Font = Enum.Font.Arcade
  99. BColor.FontSize = Enum.FontSize.Size14
  100. BColor.Text = "Lime Green"
  101. BColor.TextSize = 14
  102.  
  103. Random.Name = "Random"
  104. Random.Parent = Frame
  105. Random.BackgroundColor3 = Color3.new(1, 1, 1)
  106. Random.BorderSizePixel = 0
  107. Random.Position = UDim2.new(0, 10, 0, 80)
  108. Random.Size = UDim2.new(0, 90, 0, 30)
  109. Random.Font = Enum.Font.Arcade
  110. Random.FontSize = Enum.FontSize.Size14
  111. Random.Text = "Random"
  112. Random.TextSize = 14
  113. Random.MouseButton1Down:connect(function()
  114. if Active == false then
  115. Active = true
  116. end
  117. end)
  118.  
  119. Play.Name = "Play"
  120. Play.Parent = Frame
  121. Play.BackgroundColor3 = Color3.new(1, 1, 1)
  122. Play.BorderSizePixel = 0
  123. Play.Position = UDim2.new(0, 10, 0, 160)
  124. Play.Size = UDim2.new(0, 90, 0, 30)
  125. Play.Font = Enum.Font.Arcade
  126. Play.FontSize = Enum.FontSize.Size14
  127. Play.Text = "Play"
  128. Play.TextSize = 14
  129. Play.MouseButton1Down:connect(function()
  130. sound.TimePosition = 0
  131. sound.Playing = true
  132. sound.SoundId = "rbxassetid://"..tonumber(ID.Text)
  133. end)
  134.  
  135. Dark.Name = "Dark"
  136. Dark.Parent = Frame
  137. Dark.BackgroundColor3 = Color3.new(1, 1, 1)
  138. Dark.BorderSizePixel = 0
  139. Dark.Position = UDim2.new(0, 10, 0, 120)
  140. Dark.Size = UDim2.new(0, 90, 0, 30)
  141. Dark.Font = Enum.Font.Arcade
  142. Dark.FontSize = Enum.FontSize.Size14
  143. Dark.Text = "Dark"
  144. Dark.TextSize = 14
  145. Dark.MouseButton1Down:connect(function()
  146. game.Lighting.TimeOfDay = 0
  147. game.Lighting.GlobalShadows = false
  148. game.Lighting.Ambient = Color3.new(0,0,0)
  149. game.Lighting.Brightness = 0
  150. end)
  151.  
  152. Bright.Name = "Bright"
  153. Bright.Parent = Frame
  154. Bright.BackgroundColor3 = Color3.new(1, 1, 1)
  155. Bright.BorderSizePixel = 0
  156. Bright.Position = UDim2.new(0, 110, 0, 120)
  157. Bright.Size = UDim2.new(0, 90, 0, 30)
  158. Bright.Font = Enum.Font.Arcade
  159. Bright.FontSize = Enum.FontSize.Size14
  160. Bright.Text = "Bright"
  161. Bright.TextSize = 14
  162. Bright.MouseButton1Down:connect(function()
  163. game.Lighting.TimeOfDay = 12
  164. game.Lighting.GlobalShadows = true
  165. game.Lighting.Ambient = Color3.fromRGB(10,10,10)
  166. game.Lighting.Brightness = 1
  167. end)
  168.  
  169. Stop.Name = "Stop"
  170. Stop.Parent = Frame
  171. Stop.BackgroundColor3 = Color3.new(1, 1, 1)
  172. Stop.BorderSizePixel = 0
  173. Stop.Position = UDim2.new(0, 110, 0, 160)
  174. Stop.Size = UDim2.new(0, 90, 0, 30)
  175. Stop.Font = Enum.Font.Arcade
  176. Stop.FontSize = Enum.FontSize.Size14
  177. Stop.Text = "Stop"
  178. Stop.TextSize = 14
  179. Stop.MouseButton1Down:connect(function()
  180. sound.Playing = false
  181. end)
  182.  
  183. Hide.Name = "Hide"
  184. Hide.Parent = Frame
  185. Hide.BackgroundColor3 = Color3.new(1, 1, 1)
  186. Hide.BorderSizePixel = 0
  187. Hide.Position = UDim2.new(0, 210, 0, 160)
  188. Hide.Size = UDim2.new(0, 90, 0, 30)
  189. Hide.Font = Enum.Font.Arcade
  190. Hide.FontSize = Enum.FontSize.Size14
  191. Hide.Text = "Clear"
  192. Hide.TextSize = 14
  193. Hide.MouseButton1Down:connect(function()
  194. for i,v in pairs(game.Players.LocalPlayer.Character:GetChildren()) do
  195. if v.Name == "location" then
  196. v:Remove()
  197. end
  198. end
  199. end)
  200.  
  201. --- Made By Pugz AKA (PugLover77)
  202. plyr = game.Players.LocalPlayer
  203. c = plyr.Character
  204. RunService = game:service'RunService'
  205. mouse = game.Players.LocalPlayer:GetMouse()
  206. local draw2 = false
  207. local colorA = 1
  208. local lastPos
  209.  
  210. tool = Instance.new("HopperBin", plyr.Backpack)
  211. tool.Name = "Draw"
  212.  
  213.  
  214.  
  215. mouse = plyr:GetMouse()
  216.  
  217.  
  218. function draw(obj) --
  219. local lastPos = obj.CFrame.p
  220. coroutine.wrap(function()
  221. while wait() do
  222. if draw2 then
  223. while draw2 do
  224. wait()
  225. objC = obj:Clone()
  226. objC.Parent = c
  227. objC.Anchored = true
  228. local distance = (lastPos- obj.CFrame.p).magnitude
  229. objC.Size = Vector3.new(.1,.1,distance)
  230. objC.CFrame = CFrame.new(lastPos,obj.Position)*CFrame.new(0,0,-distance/2)
  231. lastPos = obj.CFrame.p
  232. end
  233. else
  234. break
  235. end
  236. end
  237. end)()
  238. end
  239.  
  240. tool.Selected:connect(function(mouse)
  241.  
  242. mouse.Button1Down:connect(function(mouse)
  243. draw2 = true
  244. part = Instance.new("Part", c)
  245. mesh = Instance.new("BlockMesh",part)
  246. Li = Instance.new("PointLight",part)
  247. Li.Range = 8
  248. Li.Color = part.Color
  249. part.Name = "location"
  250.  
  251. part.BottomSurface = 0
  252. part.Material = MVal
  253. part.TopSurface = 0
  254. part.Size = Vector3.new()
  255. part.Transparency = TVal
  256. if Active == true then
  257. part.Color = Color3.new(math.random(), math.random(), math.random())
  258. elseif Active == false then
  259. part.BrickColor = BrickColor.new(BVal)
  260. end
  261. Li.Color = part.Color
  262. part.FormFactor = "Custom"
  263. part.Size = Vector3.new(0.01, 0.01, 0.01)
  264. part.Anchored = true
  265. part.Locked = true
  266. coroutine.wrap(function()
  267. while part ~= nil do
  268. part.CFrame = CFrame.new(plyr:GetMouse().Hit.p.x,plyr:GetMouse().Hit.p.y,plyr:GetMouse().Hit.p.z)
  269. wait()
  270. end
  271. end)()
  272. wait()
  273. draw(part)
  274. wait()
  275. end)
  276. mouse.Button1Up:connect(function(mouse)
  277. draw2 = false
  278.  
  279. end)
  280.  
  281. end)
  282. x = 60
  283. game:GetService("RunService").Stepped:connect(function()
  284. n = sound.PlaybackLoudness
  285. if n > 500 then
  286. x = 100
  287. elseif n < 500 then
  288. x = 110
  289. end
  290. for i,v in pairs(game.Players.LocalPlayer.Character:GetChildren()) do
  291. if v.Name == "location" then
  292. v.Mesh.Scale = Vector3.new(n / x, n / x, n / x)
  293. v.PointLight.Range = n / 50
  294. end
  295. end
  296. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement