MellonYt

Redid

Jun 29th, 2018
166
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 26.43 KB | None | 0 0
  1. --[[
  2. Here Are The KeyBinds
  3. K = Kill A Random Person
  4. H = Add Max Health
  5. G = Add Walk Speed
  6. J = Get Rid Of Some Walk Speed
  7. L = Add JumpPower/ Jump Height
  8. F = Get Rid Of Some JumpPower/ Jump Height
  9. N = Spawn A Random Part
  10. U = Generate Land
  11. R = Visulizer Scriptrun
  12. W = Spawn Random House
  13. --]]
  14.  
  15.  
  16.  
  17.  
  18.  
  19.  
  20.  
  21.  
  22.  
  23.  
  24.  
  25.  
  26.  
  27.  
  28. local Part = Instance.new('Part')
  29. local Player = game:GetService('Players')
  30.  
  31. local Players = Player:GetChildren ()
  32. local Pick = 0 -- Keys GHKJLFNUR
  33.  
  34. local Roll = function ()
  35. Pick = math.random(1,#Players)
  36. end
  37. local FadeOut = function ()
  38. Part.Transparency =10
  39. wait(0.5)
  40. Part.Transparency =9
  41. wait(0.5)
  42. Part.Transparency =8
  43. wait(0.5)
  44. Part.Transparency =7
  45. wait(0.5)
  46. Part.Transparency =6
  47. wait(0.5)
  48. Part.Transparency =5
  49. wait(0.5)
  50. Part.Transparency =4
  51. wait(0.5)
  52. Part.Transparency =3
  53. wait(0.5)
  54. Part.Transparency =2
  55. wait(0.5)
  56. Part.Transparency =1
  57. wait(0.5)
  58. Part.Transparency =0
  59.  
  60. end
  61. function onKeyPress(inputObject, gameProcessedEvent)
  62. if inputObject.KeyCode == Enum.KeyCode.K then
  63. Part.Color = Color3.fromRGB(255, 0, 0)
  64. Part.Material = 'Neon'
  65. Part.Size=Vector3.new(10,10,10)
  66. Roll()
  67.  
  68. local FindPlayer = game.Workspace:WaitForChild(Players[Pick].Name)
  69. if FindPlayer.Name == game.Players.LocalPlayer.Name then
  70. return
  71. end
  72.  
  73. FindPlayer:BreakJoints ()
  74. FindPlayer:Destroy ()
  75.  
  76. end
  77. end
  78. function onKeyPress(inputObject, gameProcessedEvent)
  79. if inputObject.KeyCode == Enum.KeyCode.W then
  80. local Mesh = Instance.new('MeshPart')
  81. Mesh.MeshId = 'rbxassetid://1240027481'
  82. Mesh.TextureID ='rbxassetid://1173991123'
  83. Mesh.Position = Vector3.new(math.random(1,255),math.random(1,255),math.random(1,255))
  84. Mesh.Parent = game.Workspace
  85.  
  86. end
  87. end
  88.  
  89. game:GetService("UserInputService").InputBegan:connect(onKeyPress)
  90. function onKeyPress(inputObject, gameProcessedEvent)
  91. if inputObject.KeyCode == Enum.KeyCode.H then
  92.  
  93. local C = game.Workspace:WaitForChild(game.Players.LocalPlayer.Name)
  94. local Humanoid = C:WaitForChild ("Humanoid")
  95. Humanoid.MaxHealth = Humanoid.MaxHealth + 100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
  96. Humanoid.Health = Humanoid.MaxHealth
  97.  
  98. end
  99. end
  100.  
  101. game:GetService("UserInputService").InputBegan:connect(onKeyPress)
  102. function onKeyPress(inputObject, gameProcessedEvent)
  103. if inputObject.KeyCode == Enum.KeyCode.G then
  104.  
  105. local C = game.Workspace:WaitForChild(game.Players.LocalPlayer.Name)
  106. local Humanoid = C:WaitForChild ("Humanoid")
  107. Humanoid.WalkSpeed = Humanoid.WalkSpeed + 10
  108.  
  109. end
  110. end--Z
  111.  
  112. game:GetService("UserInputService").InputBegan:connect(onKeyPress)
  113. function onKeyPress(inputObject, gameProcessedEvent)
  114. if inputObject.KeyCode == Enum.KeyCode.J then
  115.  
  116. local C = game.Workspace:WaitForChild(game.Players.LocalPlayer.Name)
  117. local Humanoid = C:WaitForChild ("Humanoid")
  118. Humanoid.WalkSpeed = Humanoid.WalkSpeed - 10
  119.  
  120. end
  121. end
  122. game:GetService("UserInputService").InputBegan:connect(onKeyPress)
  123.  
  124. game:GetService("UserInputService").InputBegan:connect(onKeyPress)
  125. function onKeyPress(inputObject, gameProcessedEvent)
  126. if inputObject.KeyCode == Enum.KeyCode.L then
  127.  
  128. local C = game.Workspace:WaitForChild(game.Players.LocalPlayer.Name)
  129. local Humanoid = C:WaitForChild ("Humanoid")
  130. Humanoid.JumpPower = Humanoid.JumpPower + 10
  131.  
  132. end
  133. end
  134.  
  135. game:GetService("UserInputService").InputBegan:connect(onKeyPress)
  136. game:GetService("UserInputService").InputBegan:connect(onKeyPress)
  137. function onKeyPress(inputObject, gameProcessedEvent)
  138. if inputObject.KeyCode == Enum.KeyCode.F then
  139.  
  140. local C = game.Workspace:WaitForChild(game.Players.LocalPlayer.Name)
  141. local Humanoid = C:WaitForChild ("Humanoid")
  142. Humanoid.JumpPower = Humanoid.JumpPower -10
  143.  
  144. end
  145. end
  146.  
  147. game:GetService("UserInputService").InputBegan:connect(onKeyPress)
  148. game:GetService("UserInputService").InputBegan:connect(onKeyPress)
  149. function onKeyPress(inputObject, gameProcessedEvent)
  150. if inputObject.KeyCode == Enum.KeyCode.N then
  151.  
  152. local P = Instance.new('Part')
  153. P.Material = 'Neon'
  154. P.Position = Vector3.new(math.random(1,255),math.random(100,200),math.random(1,255))
  155. P.Color = Color3.fromRGB(math.random(1,255),math.random(1,255),math.random(1,255))
  156. P.Parent = game.Workspace
  157. P.Size = Vector3.new(math.random(1,100),math.random(1,100),math.random(1,100))
  158.  
  159. end
  160. end
  161. function onKeyPress(inputObject, gameProcessedEvent)
  162. if inputObject.KeyCode == Enum.KeyCode.Z then
  163.  
  164.  
  165.  
  166. end
  167. end
  168.  
  169. game:GetService("UserInputService").InputBegan:connect(onKeyPress)
  170. game:GetService("UserInputService").InputBegan:connect(onKeyPress)
  171. function onKeyPress(inputObject, gameProcessedEvent)
  172. if inputObject.KeyCode == Enum.KeyCode.R then
  173.  
  174.  
  175.  
  176. --Draw something, put your sound id in, and watch the light show!--
  177. --Enjoy lads.--
  178. Player=game:GetService("Players").LocalPlayer
  179. Character=Player.Character
  180. Character.Humanoid.Name = "noneofurbusiness"
  181. hum = Character.noneofurbusiness
  182. LeftArm=Character["Left Arm"]
  183. LeftLeg=Character["Left Leg"]
  184. RightArm=Character["Right Arm"]
  185. RightLeg=Character["Right Leg"]
  186. Root=Character["HumanoidRootPart"]
  187. Head=Character["Head"]
  188. Torso=Character["Torso"]
  189. Neck=Torso["Neck"]
  190. mouse = Player:GetMouse()
  191. removeuseless = game:GetService("Debris")
  192. soundIsPlaying = false
  193. number = 0
  194. stop = false
  195. flatt = false
  196. standingg = true
  197. tf = 0
  198. idrewsomething = false
  199. tab2={}
  200. tab={}
  201. blue = false
  202. red = true
  203. green = false
  204. drawingallowed = true
  205. MseGuide = true
  206. RunSrv = game:GetService("RunService")
  207. RenderStepped = game:GetService("RunService").RenderStepped
  208.  
  209. local HEADLERP = Instance.new("ManualWeld")
  210. HEADLERP.Parent = Head
  211. HEADLERP.Part0 = Head
  212. HEADLERP.Part1 = Head
  213. HEADLERP.C0 = CFrame.new(0, -1.5, -0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
  214.  
  215. OrgnC0 = Neck.C0
  216. local movelimbs = coroutine.wrap(function()
  217. while RunSrv.RenderStepped:wait() do
  218. TrsoLV = Torso.CFrame.lookVector
  219. Dist = nil
  220. Diff = nil
  221. if not MseGuide then
  222. print("l")
  223. else
  224. local _, Point = Workspace:FindPartOnRay(Ray.new(Head.CFrame.p, mouse.Hit.lookVector), Workspace, false, true)
  225. Dist = (Head.CFrame.p-Point).magnitude
  226. Diff = Head.CFrame.Y-Point.Y
  227. local _, Point2 = Workspace:FindPartOnRay(Ray.new(LeftArm.CFrame.p, mouse.Hit.lookVector), Workspace, false, true)
  228. Dist2 = (LeftArm.CFrame.p-Point).magnitude
  229. Diff2 = LeftArm.CFrame.Y-Point.Y
  230. HEADLERP.C0 = CFrame.new(0, -1.5, -0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
  231. Neck.C0 = Neck.C0:lerp(OrgnC0*CFrame.Angles((math.tan(Diff/Dist)*1), 0, (((Head.CFrame.p-Point).Unit):Cross(Torso.CFrame.lookVector)).Y*1), .1)
  232. end
  233. end
  234. end)
  235. movelimbs()
  236.  
  237. godmode = coroutine.wrap(function()---- so you don't get killed by fucking random things
  238. while true do
  239. hum.MaxHealth = math.huge
  240. wait(0.0000001)
  241. hum.Health = math.huge
  242. wait()
  243. end
  244. end)
  245. godmode()
  246. ff = Instance.new("ForceField", Character)
  247. ff.Visible = false
  248.  
  249. coroutine.wrap(function()
  250. mouse.Button1Down:connect(function()
  251. if drawingallowed then
  252. fo = false
  253. while true do
  254. if fo then break end
  255. idrewsomething = true
  256. brick = Instance.new("Part",Character)
  257. brick.Anchored = true
  258. brick.Material = "Neon"
  259. brick.CanCollide = false
  260. brick.BrickColor = BrickColor.new("Really black")
  261. brick.Size = Vector3.new(1,1,1)
  262. brick.CFrame = CFrame.new(mouse.Hit.p)
  263. table.insert(tab2,brick)
  264. light = Instance.new("PointLight", brick)
  265. light.Color = brick.BrickColor.Color
  266. light.Range = 0
  267. light.Enabled = true
  268. light.Shadows = true
  269. light.Brightness = 0
  270. table.insert(tab,light)
  271. wait()
  272. end
  273. end
  274. end)
  275. end)()
  276.  
  277. coroutine.wrap(function()
  278. mouse.Button1Up:connect(function()
  279. if drawingallowed then
  280. fo = true
  281. end
  282. end)
  283. end)()
  284.  
  285. ---GUI---
  286.  
  287. screenGui = Instance.new("ScreenGui")
  288. screenGui.Parent = script.Parent
  289.  
  290. frame = Instance.new("Frame")
  291. frame.Parent = screenGui
  292. frame.Position = UDim2.new(0, 8, 0, 225)
  293. frame.Size = UDim2.new(0, 250, 0, 200)
  294. frame.BackgroundColor3 = BrickColor.new("White").Color
  295. frame.BackgroundTransparency = .5
  296.  
  297. textButton = Instance.new("TextButton")
  298. textButton.Parent = screenGui
  299. textButton.Position = UDim2.new(0, 12, 0, 400)
  300. textButton.Size = UDim2.new(0, 50, 0, 10)
  301. textButton.BackgroundColor3 = BrickColor.new("Really red").Color
  302. textButton.Text = "Red"
  303.  
  304. textButton.MouseButton1Down:connect(function()
  305. red = true
  306. green = false
  307. blue = false
  308. rainbow = false
  309. smooth = false
  310. end)
  311.  
  312. textButton2 = Instance.new("TextButton")
  313. textButton2.Parent = screenGui
  314. textButton2.Position = UDim2.new(0, 75, 0, 400)
  315. textButton2.Size = UDim2.new(0, 50, 0, 10)
  316. textButton2.BackgroundColor3 = BrickColor.new("Really blue").Color
  317. textButton2.Text = "Blue"
  318.  
  319. textButton2.MouseButton1Down:connect(function()
  320. red = false
  321. green = false
  322. blue = true
  323. rainbow = false
  324. smooth = false
  325. end)
  326.  
  327. textButton3 = Instance.new("TextButton")
  328. textButton3.Parent = screenGui
  329. textButton3.Position = UDim2.new(0, 138, 0, 400)
  330. textButton3.Size = UDim2.new(0, 50, 0, 10)
  331. textButton3.BackgroundColor3 = BrickColor.new("Lime green").Color
  332. textButton3.Text = "Green"
  333.  
  334. textButton3.MouseButton1Down:connect(function()
  335. red = false
  336. green = true
  337. blue = false
  338. rainbow = false
  339. smooth = false
  340. end)
  341.  
  342. textButton4 = Instance.new("TextButton")
  343. textButton4.Parent = screenGui
  344. textButton4.Position = UDim2.new(0, 201, 0, 400)
  345. textButton4.Size = UDim2.new(0, 50, 0, 10)
  346. coroutine.wrap(function()
  347. while true do
  348. textButton4.BackgroundColor3 = BrickColor.Random().Color
  349. wait(.05)
  350. end
  351. end)()
  352. textButton4.Text = "Rainbow"
  353.  
  354. textButton4.MouseButton1Down:connect(function()
  355. red = false
  356. green = false
  357. blue = false
  358. rainbow = true
  359. smooth = false
  360. end)
  361.  
  362. textBox = Instance.new("TextBox")
  363. textBox.Parent = screenGui
  364. textBox.Position = UDim2.new(0, 58, 0, 280)
  365. textBox.Size = UDim2.new(0, 150, 0, 20)
  366. textBox.BackgroundColor3 = BrickColor.new("White").Color
  367. textBox.Text = "Type Sound Id here"
  368.  
  369. form = Instance.new("TextButton")
  370. form.Parent = screenGui
  371. form.TextScaled = true
  372. form.Position = UDim2.new(0, 114, 0, 305)
  373. form.Size = UDim2.new(0, 40, 0, 20)
  374. form.BackgroundColor3 = BrickColor.new("White").Color
  375. form.Text = "Up"
  376.  
  377. form.MouseButton1Down:connect(function()
  378. if standingg then
  379. standingg = false
  380. flatt = true
  381. form.Text = "Flat"
  382. elseif flatt then
  383. flatt = false
  384. standingg = true
  385. form.Text = "Up"
  386. end
  387. end)
  388.  
  389. coroutine.wrap(function()
  390. while wait() do
  391. sid = textBox.Text
  392. end
  393. end)()
  394.  
  395. playbutton = Instance.new("TextButton")
  396. playbutton.Parent = screenGui
  397. playbutton.Position = UDim2.new(0, 58, 0, 305)
  398. playbutton.Size = UDim2.new(0, 50, 0, 20)
  399. playbutton.BackgroundColor3 = BrickColor.new("White").Color
  400. playbutton.Text = "Play"
  401.  
  402. playbutton.MouseButton1Down:connect(function()
  403. if not idrewsomething then return end
  404. if soundIsPlaying then
  405. sound1:Remove()
  406. sound1 = Instance.new("Sound", Character)
  407. sound1.Looped = true
  408. sound1.SoundId = "http://www.roblox.com/asset/?id=" .. sid
  409. sound1:Play()
  410. else
  411. soundIsPlaying = true
  412. vol.Text = 1
  413. pitch.Text = 1
  414. sound1 = Instance.new("Sound", Character)
  415. coroutine.wrap(function()
  416. while soundIsPlaying do
  417. wait()
  418. sound1.Volume = svol
  419. end
  420. end)()
  421. sound1.Looped = true
  422. coroutine.wrap(function()
  423. while soundIsPlaying do
  424. sound1.Pitch = pitchh
  425. wait()
  426. end
  427. end)()
  428. sound1.SoundId = "http://www.roblox.com/asset/?id=" .. sid
  429. sound1:Play()
  430. coroutine.wrap(function()
  431. while sound1.IsPlaying and soundIsPlaying do
  432. for i,v in pairs(tab) do
  433. v.Enabled = true
  434. v.Brightness = sound1.PlaybackLoudness/19
  435. v.Range = sound1.PlaybackLoudness/15
  436. if red then
  437. v.Color = Color3.new(sound1.PlaybackLoudness/200, 0,0)
  438. elseif blue then
  439. v.Color = Color3.new(0, 0,sound1.PlaybackLoudness/200)
  440. elseif green then
  441. v.Color = Color3.new(0, sound1.PlaybackLoudness/200,0)
  442. elseif rainbow then
  443. v.Color = brick.BrickColor.Color
  444. end
  445. end
  446. wait()
  447. end
  448. end)()
  449. while sound1.IsPlaying and soundIsPlaying do
  450. workspace.CurrentCamera.FieldOfView = 70 - sound1.PlaybackLoudness/100
  451. bcol = brick.BrickColor
  452. for _,v in pairs(tab2) do
  453. if standingg then
  454. v.Size = Vector3.new(1, sound1.PlaybackLoudness/math.random(10,25), 1)
  455. elseif flatt then
  456. v.Size = Vector3.new(sound1.PlaybackLoudness/math.random(10,25), 1, 1)
  457. end
  458. if red then
  459. v.BrickColor = BrickColor.new(Color3.new(sound1.PlaybackLoudness/200, 0,0))
  460. elseif blue then
  461. v.BrickColor = BrickColor.new(Color3.new(0,0,sound1.PlaybackLoudness/200))
  462. elseif green then
  463. v.BrickColor = BrickColor.new(Color3.new(0,sound1.PlaybackLoudness/200,0))
  464. elseif rainbow then
  465. v.BrickColor = BrickColor.Random()
  466. end
  467. end
  468. wait()
  469. end
  470. end
  471. end)
  472.  
  473. local stopbutton = Instance.new("TextButton")
  474. stopbutton.Parent = screenGui
  475. stopbutton.Position = UDim2.new(0, 158, 0, 305)
  476. stopbutton.Size = UDim2.new(0, 50, 0, 20)
  477. stopbutton.BackgroundColor3 = BrickColor.new("White").Color
  478. stopbutton.Text = "Stop"
  479.  
  480. vol = Instance.new("TextBox")
  481. vol.Parent = screenGui
  482. vol.Position = UDim2.new(0, 58, 0, 330)
  483. vol.Size = UDim2.new(0, 50, 0, 20)
  484. vol.BackgroundColor3 = BrickColor.new("White").Color
  485. vol.Text = "Volume"
  486.  
  487. coroutine.wrap(function()
  488. while wait() do
  489. svol = vol.Text
  490. end
  491. end)()
  492.  
  493. local remove = Instance.new("TextButton")
  494. remove.Parent = screenGui
  495. remove.Position = UDim2.new(0, 108, 0, 370)
  496. remove.Size = UDim2.new(0, 50, 0, 20)
  497. remove.BackgroundColor3 = BrickColor.new("White").Color
  498. remove.Text = "Clean"
  499.  
  500. pitch = Instance.new("TextBox")
  501. pitch.Parent = screenGui
  502. pitch.Position = UDim2.new(0, 158, 0, 330)
  503. pitch.Size = UDim2.new(0, 50, 0, 20)
  504. pitch.BackgroundColor3 = BrickColor.new("White").Color
  505. pitch.Text = "Pitch"
  506.  
  507. coroutine.wrap(function()
  508. while wait() do
  509. pitchh = pitch.Text
  510. end
  511. end)()
  512.  
  513. pitchup = Instance.new("ImageButton")
  514. pitchup.Parent = screenGui
  515. pitchup.Position = UDim2.new(0, 131, 0, 327)
  516. pitchup.BackgroundTransparency = 1
  517. pitchup.Size = UDim2.new(0, 25, 0, 25)
  518. pitchup.Image = "rbxassetid://29563813"
  519.  
  520. pitchup.MouseButton1Down:connect(function()
  521. if soundIsPlaying then
  522. pitch.Text = pitch.Text + .1
  523. end
  524. end)
  525.  
  526. pitchdown = Instance.new("ImageButton")
  527. pitchdown.Parent = screenGui
  528. pitchdown.Rotation = 180
  529. pitchdown.Position = UDim2.new(0, 211, 0, 327)
  530. pitchdown.BackgroundTransparency = 1
  531. pitchdown.Size = UDim2.new(0, 25, 0, 25)
  532. pitchdown.Image = "rbxassetid://29563813"
  533.  
  534. pitchdown.MouseButton1Down:connect(function()
  535. if soundIsPlaying then
  536. pitch.Text = pitch.Text - .1
  537. end
  538. end)
  539.  
  540. remove.MouseButton1Down:connect(function()
  541. if idrewsomething then
  542. if soundIsPlaying then
  543. soundIsPlaying = false
  544. workspace.CurrentCamera.FieldOfView = 70
  545. woosh = Instance.new("Sound",Character)
  546. woosh.Volume = 2
  547. woosh.SoundId = "rbxasstid://215402014"
  548. woosh:Play()
  549. sound1:Stop()
  550. pitch.Text = "Pitch"
  551. vol.Text = "Volume"
  552. removeuseless:AddItem(woosh,2)
  553. for _,v in pairs(tab2) do
  554. v:Remove()
  555. end
  556. idrewsomething = false
  557. elseif not soundIsPlaying then
  558. soundIsPlaying = false
  559. woosh = Instance.new("Sound",Character)
  560. woosh.Volume = 2
  561. woosh.SoundId = "rbxasstid://215402014"
  562. woosh:Play()
  563. for _,v in pairs(tab2) do
  564. v:Remove()
  565. end
  566. idrewsomething = false
  567. end
  568. end
  569. end)
  570.  
  571. local day = Instance.new("TextButton")
  572. day.Parent = screenGui
  573. day.Position = UDim2.new(0, 50, 0, 370)
  574. day.Size = UDim2.new(0, 50, 0, 20)
  575. day.BackgroundColor3 = BrickColor.new("Bright yellow").Color
  576. day.Text = "Day"
  577.  
  578. day.MouseButton1Down:connect(function()
  579. daytime = true
  580. nighttime = false
  581. turnon = Instance.new("Sound",Character)
  582. turnon.SoundId = "rbxassetid://858896518"
  583. turnon.Volume = 1
  584. turnon.Pitch = 1.05
  585. turnon:Play()
  586. removeuseless:AddItem(turnon,2)
  587. coroutine.wrap(function()
  588. while daytime do
  589. game.Lighting.TimeOfDay = 12
  590. game.Lighting.GlobalShadows = true
  591. game.Lighting.Ambient = Color3.fromRGB(10,10,10)
  592. game.Lighting.Brightness = 1
  593. wait()
  594. end
  595. end)()
  596. end)
  597.  
  598. local night = Instance.new("TextButton")
  599. night.Parent = screenGui
  600. night.Position = UDim2.new(0, 165, 0, 370)
  601. night.Size = UDim2.new(0, 50, 0, 20)
  602. night.BackgroundColor3 = BrickColor.new("Really black").Color
  603. night.TextColor = BrickColor.new("White")
  604. night.Text = "Night"
  605.  
  606. night.MouseButton1Down:connect(function()
  607. daytime = false
  608. nighttime = true
  609. turnoff = Instance.new("Sound",Character)
  610. turnoff.SoundId = "rbxassetid://858896518"
  611. turnoff.Volume = 1
  612. turnoff.Pitch = .9
  613. turnoff:Play()
  614. removeuseless:AddItem(turnoff,2)
  615. coroutine.wrap(function()
  616. while nighttime do
  617. game.Lighting.TimeOfDay = 0
  618. game.Lighting.GlobalShadows = false
  619. game.Lighting.Ambient = Color3.new(0,0,0)
  620. game.Lighting.Brightness = 0
  621. wait()
  622. end
  623. end)()
  624. end)
  625.  
  626. volumeup = Instance.new("ImageButton")
  627. volumeup.Parent = screenGui
  628. volumeup.Position = UDim2.new(0, 29, 0, 327)
  629. volumeup.BackgroundTransparency = 1
  630. volumeup.Size = UDim2.new(0, 25, 0, 25)
  631. volumeup.Image = "rbxassetid://29563813"
  632.  
  633. volumeup.MouseButton1Down:connect(function()
  634. if soundIsPlaying then
  635. vol.Text = vol.Text + 1
  636. end
  637. end)
  638.  
  639. volumedown = Instance.new("ImageButton")
  640. volumedown.Parent = screenGui
  641. volumedown.Rotation = 180
  642. volumedown.Position = UDim2.new(0, 111, 0, 327)
  643. volumedown.BackgroundTransparency = 1
  644. volumedown.Size = UDim2.new(0, 25, 0, 25)
  645. volumedown.Image = "rbxassetid://29563813"
  646.  
  647. Supr14 = Instance.new("ImageLabel")
  648. Supr14.Parent = screenGui
  649. Supr14.Rotation = 0
  650. Supr14.Position = UDim2.new(0, 13, 0, 222)
  651. Supr14.BackgroundTransparency = 1
  652. Supr14.Size = UDim2.new(0, 240, 0, 60)
  653. Supr14.Image = "rbxassetid://1815697653"
  654.  
  655. volumedown.MouseButton1Down:connect(function()
  656. if soundIsPlaying then
  657. vol.Text = vol.Text - 1
  658. end
  659. end)
  660.  
  661. stopbutton.MouseButton1Down:connect(function()
  662. if idrewsomething then
  663. if soundIsPlaying then
  664. sound1:Remove()
  665. soundIsPlaying = false
  666. workspace.CurrentCamera.FieldOfView = 70
  667. pitch.Text = "Pitch"
  668. vol.Text = "Volume"
  669. for i,v in pairs(tab) do
  670. v.Enabled = false
  671. end
  672. for i = 1, 10 do
  673. for _,v in pairs(tab2) do
  674. v.BrickColor = BrickColor.new("Really black")
  675. v.Size = v.Size - Vector3.new(0,15,0)
  676. end
  677. wait()
  678. end
  679. end
  680. end
  681. end)
  682.  
  683. print("Drawing visualiser!, Made by Supr14")
  684.  
  685.  
  686.  
  687.  
  688.  
  689.  
  690.  
  691.  
  692.  
  693.  
  694.  
  695.  
  696. end
  697. end
  698.  
  699. game:GetService("UserInputService").InputBegan:connect(onKeyPress)
  700.  
  701.  
  702.  
  703.  
  704.  
  705.  
  706.  
  707.  
  708.  
  709.  
  710.  
  711.  
  712. function onKeyPress(inputObject, gameProcessedEvent)
  713. if inputObject.KeyCode == Enum.KeyCode.U then
  714.  
  715. local W = math.random(1,50) -- The Generate Width Tip. Keep Value Below 100 Unless You Want Very Bad Lag
  716. local L = math.random(1,50) -- The Generate Lenght Tip. Keep Value Below 100 Unless You Want Very Bad Lag
  717. local Enable = true -- Random Color false for off true for on
  718. local Ran1 = 4 -- This is random size smallest
  719. local Ran2 = 20 -- This is random size Largest
  720.  
  721.  
  722.  
  723.  
  724.  
  725.  
  726.  
  727.  
  728.  
  729.  
  730.  
  731.  
  732.  
  733.  
  734.  
  735.  
  736.  
  737.  
  738.  
  739. Part.Position = Vector3.new(math.random(1,100),math.random(1,100),math.random(1,100))
  740.  
  741.  
  742.  
  743.  
  744.  
  745.  
  746.  
  747.  
  748.  
  749.  
  750.  
  751.  
  752.  
  753.  
  754.  
  755.  
  756.  
  757. --- DO NOT CHANGE ANYTHING BEYOND THIS POINT
  758. local Folder = Instance.new('Folder')
  759. Folder.Name = "Blocks"
  760. Folder.Parent = game.Workspace
  761. local WValue = 0
  762. local LValue = 0
  763. local ValueID = false
  764. local A = 0
  765. local B = 0
  766. local First = false
  767. local Teller = false
  768. local Spawn = function()
  769. if WValue < W and ValueID == false and First == false
  770. then
  771.  
  772.  
  773. local Part = Instance.new('Part')
  774. local Size1 = math.random(Ran1,Ran2)
  775. Part.Size = Vector3.new(4, Size1, 4)
  776. --- Generate W
  777. Part.Position = Vector3.new(Part.Position.Z+A, 5+4, Part.Position.X+B)
  778. A = A + 4
  779. Part.Parent = workspace
  780. WValue = WValue + 1
  781. Part.Anchored = true
  782. Part.FrontSurface = "Smooth"
  783. Part.BackSurface = "Smooth"
  784. Part.BottomSurface = "Smooth"
  785. Part.TopSurface = "Smooth"
  786. if Enable == true
  787. then
  788.  
  789. local C = math.random(1,255)
  790. local D = math.random(1,255)
  791. local E = math.random(1,255)
  792. Part.Color = Color3.new (C,D,E)
  793. Teller = false
  794. --- End
  795. end
  796. if First == false
  797. then
  798. game.Workspace.Part.Name = "A"
  799. First = true
  800.  
  801. end
  802.  
  803.  
  804. end
  805. if WValue == W
  806. then
  807. ValueID = true
  808. end
  809. if WValue < W and ValueID == false
  810. then
  811.  
  812.  
  813. local Part = Instance.new('Part')
  814. local Size1 = math.random(Ran1,Ran2)
  815. Part.Size = Vector3.new(4, Size1, 4)
  816. --- Generate W
  817. Part.Position = Vector3.new(game.Workspace.A.Position.Z+A, 5+4,game.Workspace.A.Position.X +B) --game.Workspace.A.Position.X
  818. A = A + 4
  819. Part.Parent = Folder
  820. WValue = WValue + 1
  821. Part.Anchored = true
  822. Part.FrontSurface = "Smooth"
  823. Part.BackSurface = "Smooth"
  824. Part.BottomSurface = "Smooth"
  825. Part.TopSurface = "Smooth"
  826. Teller = false
  827.  
  828. -- Random Color
  829. if Enable == true
  830. then
  831.  
  832. local C = math.random(1,255)
  833. local D = math.random(1,255)
  834. local E = math.random(1,255)
  835. Part.Color = Color3.new (C,D,E)
  836. Teller = false
  837. --- End
  838. end
  839. end
  840.  
  841. if WValue == W and LValue < L
  842. then
  843. print("_")
  844. B = B + 4
  845. WValue = 0
  846. ValueID = false
  847. First = true
  848. LValue = LValue + 1
  849. Teller = true
  850.  
  851. end
  852. if Teller == true
  853. then
  854. A = 0
  855.  
  856. end
  857.  
  858.  
  859.  
  860. end
  861. repeat
  862. wait(0.01)
  863. Spawn()
  864. until false
  865. end
  866. end
  867.  
  868. game:GetService("UserInputService").InputBegan:connect(onKeyPress)
Advertisement
Add Comment
Please, Sign In to add comment