Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --[[
- Here Are The KeyBinds
- K = Kill A Random Person
- H = Add Max Health
- G = Add Walk Speed
- J = Get Rid Of Some Walk Speed
- L = Add JumpPower/ Jump Height
- F = Get Rid Of Some JumpPower/ Jump Height
- N = Spawn A Random Part
- U = Generate Land
- R = Visulizer Scriptrun
- M =Make Small House
- P = Spawn SMall House
- --]]
- local Part = Instance.new('Part')
- local Player = game:GetService('Players')
- local Players = Player:GetChildren ()
- local Pick = 0 -- Keys GHKJLFNUR
- local Roll = function ()
- Pick = math.random(1,#Players)
- end
- local FadeOut = function ()
- Part.Transparency =10
- wait(0.5)
- Part.Transparency =9
- wait(0.5)
- Part.Transparency =8
- wait(0.5)
- Part.Transparency =7
- wait(0.5)
- Part.Transparency =6
- wait(0.5)
- Part.Transparency =5
- wait(0.5)
- Part.Transparency =4
- wait(0.5)
- Part.Transparency =3
- wait(0.5)
- Part.Transparency =2
- wait(0.5)
- Part.Transparency =1
- wait(0.5)
- Part.Transparency =0
- end
- function onKeyPress(inputObject, gameProcessedEvent)
- if inputObject.KeyCode == Enum.KeyCode.K then
- Part.Color = Color3.fromRGB(255, 0, 0)
- Part.Material = 'Neon'
- Part.Size=Vector3.new(10,10,10)
- Roll()
- local FindPlayer = game.Workspace:WaitForChild(Players[Pick].Name)
- if FindPlayer.Name == game.Players.LocalPlayer.Name then
- return
- end
- FindPlayer:BreakJoints ()
- FindPlayer:Destroy ()
- end
- end
- function onKeyPress(inputObject, gameProcessedEvent)
- if inputObject.KeyCode == Enum.KeyCode.M then
- local Model = Instance.new('Model')
- local Part = Instance.new('Part')
- local Part1 = Instance.new('Part')
- local Part2 = Instance.new('Part')
- local Part3 = Instance.new('Part')
- local Part4 = Instance.new('Part')
- local Part5 = Instance.new('Part')
- local Part6 = Instance.new('Part')
- local Part7 = Instance.new('Part')
- Model.Parent = game.Workspace
- Model.Name = 'SmallBadHouse'
- Part.Size = Vector3.new(25.4, 13.34, 1.49)
- Part.Position = Vector3.new(21.5, 213.458, -0.825)
- Part.Color = Color3.fromRGB(211, 190, 150)
- Part.Material = 'WoodPlanks'
- Part.Anchored = true
- Part.Name = 'Part'
- Part.Parent = Model
- Part1.Size = Vector3.new(25.4, 0.66, 24.9)
- Part1.Position = Vector3.new(21.5, 206.638, 10.88)
- Part1.Color = Color3.fromRGB(211, 190, 150)
- Part1.Material = 'WoodPlanks'
- Part1.Anchored = true
- Part1.Name = 'Part'
- Part1.Parent = Model
- Part2.Size = Vector3.new(25.4, 13.34, 1.49)
- Part2.Position = Vector3.new(21.5, 213.458, 22.465)
- Part2.Color = Color3.fromRGB(211, 190, 150)
- Part2.Material = 'WoodPlanks'
- Part2.Anchored = true
- Part2.Name = 'Part'
- Part2.Parent = Model
- Part3.Size = Vector3.new(1.61, 13.34, 22.11)
- Part3.Position = Vector3.new(33.395, 213.458, 10.725)
- Part3.Color = Color3.fromRGB(211, 190, 150)
- Part3.Material = 'WoodPlanks'
- Part3.Anchored = true
- Part3.Name = 'Part'
- Part3.Parent = Model
- Part4.Size = Vector3.new(1.04, 13.11, 8.48)
- Part4.Position = Vector3.new(9.51, 213.573, 3.91)
- Part4.Color = Color3.fromRGB(211, 190, 150)
- Part4.Material = 'WoodPlanks'
- Part4.Anchored = true
- Part4.Name = 'Part'
- Part4.Parent = Model
- Part5.Size = Vector3.new(1.04, 13.11, 8.48)
- Part5.Position = Vector3.new(9.51, 213.573, 17.5)
- Part5.Color = Color3.fromRGB(211, 190, 150)
- Part5.Material = 'WoodPlanks'
- Part5.Anchored = true
- Part5.Name = 'Part'
- Part5.Parent = Model
- Part6.Size = Vector3.new(1.04, 5.46, 5.24)
- Part6.Position = Vector3.new(9.51, 217.398, 10.69)
- Part6.Color = Color3.fromRGB(211, 190, 150)
- Part6.Material = 'WoodPlanks'
- Part6.Anchored = true
- Part6.Name = 'Part'
- Part6.Parent = Model
- Part7.Size = Vector3.new(25.17, 0.43, 23.63)
- Part7.Position = Vector3.new(21.575, 220.293, 10.745)
- Part7.Color = Color3.fromRGB(211, 190, 150)
- Part7.Material = 'WoodPlanks'
- Part7.Anchored = true
- Part7.Name = 'Part'
- Part7.Parent = Model
- Model.Parent = game.Lighting
- end
- end
- game:GetService("UserInputService").InputBegan:connect(onKeyPress)
- function onKeyPress(inputObject, gameProcessedEvent)
- if inputObject.KeyCode == Enum.KeyCode.P then
- local House = game.Lighting:WaitForChild("SmallBadHouse")
- local HouseClone = House:Clone ()
- HouseClone.Parent = game.Workspace
- HouseClone:MoveTo(Vector3.new(math.random(1,100),math.random(1,100),math.random(1,100)))
- end
- end
- game:GetService("UserInputService").InputBegan:connect(onKeyPress)
- game:GetService("UserInputService").InputBegan:connect(onKeyPress)
- function onKeyPress(inputObject, gameProcessedEvent)
- if inputObject.KeyCode == Enum.KeyCode.H then
- local C = game.Workspace:WaitForChild(game.Players.LocalPlayer.Name)
- local Humanoid = C:WaitForChild ("Humanoid")
- Humanoid.MaxHealth = Humanoid.MaxHealth + 100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
- Humanoid.Health = Humanoid.MaxHealth
- end
- end
- game:GetService("UserInputService").InputBegan:connect(onKeyPress)
- function onKeyPress(inputObject, gameProcessedEvent)
- if inputObject.KeyCode == Enum.KeyCode.G then
- local C = game.Workspace:WaitForChild(game.Players.LocalPlayer.Name)
- local Humanoid = C:WaitForChild ("Humanoid")
- Humanoid.WalkSpeed = Humanoid.WalkSpeed + 10
- end
- end--Z
- game:GetService("UserInputService").InputBegan:connect(onKeyPress)
- function onKeyPress(inputObject, gameProcessedEvent)
- if inputObject.KeyCode == Enum.KeyCode.J then
- local C = game.Workspace:WaitForChild(game.Players.LocalPlayer.Name)
- local Humanoid = C:WaitForChild ("Humanoid")
- Humanoid.WalkSpeed = Humanoid.WalkSpeed - 10
- end
- end
- game:GetService("UserInputService").InputBegan:connect(onKeyPress)
- game:GetService("UserInputService").InputBegan:connect(onKeyPress)
- function onKeyPress(inputObject, gameProcessedEvent)
- if inputObject.KeyCode == Enum.KeyCode.L then
- local C = game.Workspace:WaitForChild(game.Players.LocalPlayer.Name)
- local Humanoid = C:WaitForChild ("Humanoid")
- Humanoid.JumpPower = Humanoid.JumpPower + 10
- end
- end
- game:GetService("UserInputService").InputBegan:connect(onKeyPress)
- game:GetService("UserInputService").InputBegan:connect(onKeyPress)
- function onKeyPress(inputObject, gameProcessedEvent)
- if inputObject.KeyCode == Enum.KeyCode.F then
- local C = game.Workspace:WaitForChild(game.Players.LocalPlayer.Name)
- local Humanoid = C:WaitForChild ("Humanoid")
- Humanoid.JumpPower = Humanoid.JumpPower -10
- end
- end
- game:GetService("UserInputService").InputBegan:connect(onKeyPress)
- game:GetService("UserInputService").InputBegan:connect(onKeyPress)
- function onKeyPress(inputObject, gameProcessedEvent)
- if inputObject.KeyCode == Enum.KeyCode.N then
- local P = Instance.new('Part')
- P.Material = 'Neon'
- P.Position = Vector3.new(math.random(1,255),math.random(100,200),math.random(1,255))
- P.Color = Color3.fromRGB(math.random(1,255),math.random(1,255),math.random(1,255))
- P.Parent = game.Workspace
- P.Size = Vector3.new(math.random(1,100),math.random(1,100),math.random(1,100))
- end
- end
- function onKeyPress(inputObject, gameProcessedEvent)
- if inputObject.KeyCode == Enum.KeyCode.Z then
- end
- end
- game:GetService("UserInputService").InputBegan:connect(onKeyPress)
- game:GetService("UserInputService").InputBegan:connect(onKeyPress)
- function onKeyPress(inputObject, gameProcessedEvent)
- if inputObject.KeyCode == Enum.KeyCode.R then
- --Draw something, put your sound id in, and watch the light show!--
- --Enjoy lads.--
- Player=game:GetService("Players").LocalPlayer
- Character=Player.Character
- Character.Humanoid.Name = "noneofurbusiness"
- hum = Character.noneofurbusiness
- LeftArm=Character["Left Arm"]
- LeftLeg=Character["Left Leg"]
- RightArm=Character["Right Arm"]
- RightLeg=Character["Right Leg"]
- Root=Character["HumanoidRootPart"]
- Head=Character["Head"]
- Torso=Character["Torso"]
- Neck=Torso["Neck"]
- mouse = Player:GetMouse()
- removeuseless = game:GetService("Debris")
- soundIsPlaying = false
- number = 0
- stop = false
- flatt = false
- standingg = true
- tf = 0
- idrewsomething = false
- tab2={}
- tab={}
- blue = false
- red = true
- green = false
- drawingallowed = true
- MseGuide = true
- RunSrv = game:GetService("RunService")
- RenderStepped = game:GetService("RunService").RenderStepped
- local HEADLERP = Instance.new("ManualWeld")
- HEADLERP.Parent = Head
- HEADLERP.Part0 = Head
- HEADLERP.Part1 = Head
- HEADLERP.C0 = CFrame.new(0, -1.5, -0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
- OrgnC0 = Neck.C0
- local movelimbs = coroutine.wrap(function()
- while RunSrv.RenderStepped:wait() do
- TrsoLV = Torso.CFrame.lookVector
- Dist = nil
- Diff = nil
- if not MseGuide then
- print("l")
- else
- local _, Point = Workspace:FindPartOnRay(Ray.new(Head.CFrame.p, mouse.Hit.lookVector), Workspace, false, true)
- Dist = (Head.CFrame.p-Point).magnitude
- Diff = Head.CFrame.Y-Point.Y
- local _, Point2 = Workspace:FindPartOnRay(Ray.new(LeftArm.CFrame.p, mouse.Hit.lookVector), Workspace, false, true)
- Dist2 = (LeftArm.CFrame.p-Point).magnitude
- Diff2 = LeftArm.CFrame.Y-Point.Y
- HEADLERP.C0 = CFrame.new(0, -1.5, -0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
- 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)
- end
- end
- end)
- movelimbs()
- godmode = coroutine.wrap(function()---- so you don't get killed by fucking random things
- while true do
- hum.MaxHealth = math.huge
- wait(0.0000001)
- hum.Health = math.huge
- wait()
- end
- end)
- godmode()
- ff = Instance.new("ForceField", Character)
- ff.Visible = false
- coroutine.wrap(function()
- mouse.Button1Down:connect(function()
- if drawingallowed then
- fo = false
- while true do
- if fo then break end
- idrewsomething = true
- brick = Instance.new("Part",Character)
- brick.Anchored = true
- brick.Material = "Neon"
- brick.CanCollide = false
- brick.BrickColor = BrickColor.new("Really black")
- brick.Size = Vector3.new(1,1,1)
- brick.CFrame = CFrame.new(mouse.Hit.p)
- table.insert(tab2,brick)
- light = Instance.new("PointLight", brick)
- light.Color = brick.BrickColor.Color
- light.Range = 0
- light.Enabled = true
- light.Shadows = true
- light.Brightness = 0
- table.insert(tab,light)
- wait()
- end
- end
- end)
- end)()
- coroutine.wrap(function()
- mouse.Button1Up:connect(function()
- if drawingallowed then
- fo = true
- end
- end)
- end)()
- ---GUI---
- screenGui = Instance.new("ScreenGui")
- screenGui.Parent = script.Parent
- frame = Instance.new("Frame")
- frame.Parent = screenGui
- frame.Position = UDim2.new(0, 8, 0, 225)
- frame.Size = UDim2.new(0, 250, 0, 200)
- frame.BackgroundColor3 = BrickColor.new("White").Color
- frame.BackgroundTransparency = .5
- textButton = Instance.new("TextButton")
- textButton.Parent = screenGui
- textButton.Position = UDim2.new(0, 12, 0, 400)
- textButton.Size = UDim2.new(0, 50, 0, 10)
- textButton.BackgroundColor3 = BrickColor.new("Really red").Color
- textButton.Text = "Red"
- textButton.MouseButton1Down:connect(function()
- red = true
- green = false
- blue = false
- rainbow = false
- smooth = false
- end)
- textButton2 = Instance.new("TextButton")
- textButton2.Parent = screenGui
- textButton2.Position = UDim2.new(0, 75, 0, 400)
- textButton2.Size = UDim2.new(0, 50, 0, 10)
- textButton2.BackgroundColor3 = BrickColor.new("Really blue").Color
- textButton2.Text = "Blue"
- textButton2.MouseButton1Down:connect(function()
- red = false
- green = false
- blue = true
- rainbow = false
- smooth = false
- end)
- textButton3 = Instance.new("TextButton")
- textButton3.Parent = screenGui
- textButton3.Position = UDim2.new(0, 138, 0, 400)
- textButton3.Size = UDim2.new(0, 50, 0, 10)
- textButton3.BackgroundColor3 = BrickColor.new("Lime green").Color
- textButton3.Text = "Green"
- textButton3.MouseButton1Down:connect(function()
- red = false
- green = true
- blue = false
- rainbow = false
- smooth = false
- end)
- textButton4 = Instance.new("TextButton")
- textButton4.Parent = screenGui
- textButton4.Position = UDim2.new(0, 201, 0, 400)
- textButton4.Size = UDim2.new(0, 50, 0, 10)
- coroutine.wrap(function()
- while true do
- textButton4.BackgroundColor3 = BrickColor.Random().Color
- wait(.05)
- end
- end)()
- textButton4.Text = "Rainbow"
- textButton4.MouseButton1Down:connect(function()
- red = false
- green = false
- blue = false
- rainbow = true
- smooth = false
- end)
- textBox = Instance.new("TextBox")
- textBox.Parent = screenGui
- textBox.Position = UDim2.new(0, 58, 0, 280)
- textBox.Size = UDim2.new(0, 150, 0, 20)
- textBox.BackgroundColor3 = BrickColor.new("White").Color
- textBox.Text = "Type Sound Id here"
- form = Instance.new("TextButton")
- form.Parent = screenGui
- form.TextScaled = true
- form.Position = UDim2.new(0, 114, 0, 305)
- form.Size = UDim2.new(0, 40, 0, 20)
- form.BackgroundColor3 = BrickColor.new("White").Color
- form.Text = "Up"
- form.MouseButton1Down:connect(function()
- if standingg then
- standingg = false
- flatt = true
- form.Text = "Flat"
- elseif flatt then
- flatt = false
- standingg = true
- form.Text = "Up"
- end
- end)
- coroutine.wrap(function()
- while wait() do
- sid = textBox.Text
- end
- end)()
- playbutton = Instance.new("TextButton")
- playbutton.Parent = screenGui
- playbutton.Position = UDim2.new(0, 58, 0, 305)
- playbutton.Size = UDim2.new(0, 50, 0, 20)
- playbutton.BackgroundColor3 = BrickColor.new("White").Color
- playbutton.Text = "Play"
- playbutton.MouseButton1Down:connect(function()
- if not idrewsomething then return end
- if soundIsPlaying then
- sound1:Remove()
- sound1 = Instance.new("Sound", Character)
- sound1.Looped = true
- sound1.SoundId = "http://www.roblox.com/asset/?id=" .. sid
- sound1:Play()
- else
- soundIsPlaying = true
- vol.Text = 1
- pitch.Text = 1
- sound1 = Instance.new("Sound", Character)
- coroutine.wrap(function()
- while soundIsPlaying do
- wait()
- sound1.Volume = svol
- end
- end)()
- sound1.Looped = true
- coroutine.wrap(function()
- while soundIsPlaying do
- sound1.Pitch = pitchh
- wait()
- end
- end)()
- sound1.SoundId = "http://www.roblox.com/asset/?id=" .. sid
- sound1:Play()
- coroutine.wrap(function()
- while sound1.IsPlaying and soundIsPlaying do
- for i,v in pairs(tab) do
- v.Enabled = true
- v.Brightness = sound1.PlaybackLoudness/19
- v.Range = sound1.PlaybackLoudness/15
- if red then
- v.Color = Color3.new(sound1.PlaybackLoudness/200, 0,0)
- elseif blue then
- v.Color = Color3.new(0, 0,sound1.PlaybackLoudness/200)
- elseif green then
- v.Color = Color3.new(0, sound1.PlaybackLoudness/200,0)
- elseif rainbow then
- v.Color = brick.BrickColor.Color
- end
- end
- wait()
- end
- end)()
- while sound1.IsPlaying and soundIsPlaying do
- workspace.CurrentCamera.FieldOfView = 70 - sound1.PlaybackLoudness/100
- bcol = brick.BrickColor
- for _,v in pairs(tab2) do
- if standingg then
- v.Size = Vector3.new(1, sound1.PlaybackLoudness/math.random(10,25), 1)
- elseif flatt then
- v.Size = Vector3.new(sound1.PlaybackLoudness/math.random(10,25), 1, 1)
- end
- if red then
- v.BrickColor = BrickColor.new(Color3.new(sound1.PlaybackLoudness/200, 0,0))
- elseif blue then
- v.BrickColor = BrickColor.new(Color3.new(0,0,sound1.PlaybackLoudness/200))
- elseif green then
- v.BrickColor = BrickColor.new(Color3.new(0,sound1.PlaybackLoudness/200,0))
- elseif rainbow then
- v.BrickColor = BrickColor.Random()
- end
- end
- wait()
- end
- end
- end)
- local stopbutton = Instance.new("TextButton")
- stopbutton.Parent = screenGui
- stopbutton.Position = UDim2.new(0, 158, 0, 305)
- stopbutton.Size = UDim2.new(0, 50, 0, 20)
- stopbutton.BackgroundColor3 = BrickColor.new("White").Color
- stopbutton.Text = "Stop"
- vol = Instance.new("TextBox")
- vol.Parent = screenGui
- vol.Position = UDim2.new(0, 58, 0, 330)
- vol.Size = UDim2.new(0, 50, 0, 20)
- vol.BackgroundColor3 = BrickColor.new("White").Color
- vol.Text = "Volume"
- coroutine.wrap(function()
- while wait() do
- svol = vol.Text
- end
- end)()
- local remove = Instance.new("TextButton")
- remove.Parent = screenGui
- remove.Position = UDim2.new(0, 108, 0, 370)
- remove.Size = UDim2.new(0, 50, 0, 20)
- remove.BackgroundColor3 = BrickColor.new("White").Color
- remove.Text = "Clean"
- pitch = Instance.new("TextBox")
- pitch.Parent = screenGui
- pitch.Position = UDim2.new(0, 158, 0, 330)
- pitch.Size = UDim2.new(0, 50, 0, 20)
- pitch.BackgroundColor3 = BrickColor.new("White").Color
- pitch.Text = "Pitch"
- coroutine.wrap(function()
- while wait() do
- pitchh = pitch.Text
- end
- end)()
- pitchup = Instance.new("ImageButton")
- pitchup.Parent = screenGui
- pitchup.Position = UDim2.new(0, 131, 0, 327)
- pitchup.BackgroundTransparency = 1
- pitchup.Size = UDim2.new(0, 25, 0, 25)
- pitchup.Image = "rbxassetid://29563813"
- pitchup.MouseButton1Down:connect(function()
- if soundIsPlaying then
- pitch.Text = pitch.Text + .1
- end
- end)
- pitchdown = Instance.new("ImageButton")
- pitchdown.Parent = screenGui
- pitchdown.Rotation = 180
- pitchdown.Position = UDim2.new(0, 211, 0, 327)
- pitchdown.BackgroundTransparency = 1
- pitchdown.Size = UDim2.new(0, 25, 0, 25)
- pitchdown.Image = "rbxassetid://29563813"
- pitchdown.MouseButton1Down:connect(function()
- if soundIsPlaying then
- pitch.Text = pitch.Text - .1
- end
- end)
- remove.MouseButton1Down:connect(function()
- if idrewsomething then
- if soundIsPlaying then
- soundIsPlaying = false
- workspace.CurrentCamera.FieldOfView = 70
- woosh = Instance.new("Sound",Character)
- woosh.Volume = 2
- woosh.SoundId = "rbxasstid://215402014"
- woosh:Play()
- sound1:Stop()
- pitch.Text = "Pitch"
- vol.Text = "Volume"
- removeuseless:AddItem(woosh,2)
- for _,v in pairs(tab2) do
- v:Remove()
- end
- idrewsomething = false
- elseif not soundIsPlaying then
- soundIsPlaying = false
- woosh = Instance.new("Sound",Character)
- woosh.Volume = 2
- woosh.SoundId = "rbxasstid://215402014"
- woosh:Play()
- for _,v in pairs(tab2) do
- v:Remove()
- end
- idrewsomething = false
- end
- end
- end)
- local day = Instance.new("TextButton")
- day.Parent = screenGui
- day.Position = UDim2.new(0, 50, 0, 370)
- day.Size = UDim2.new(0, 50, 0, 20)
- day.BackgroundColor3 = BrickColor.new("Bright yellow").Color
- day.Text = "Day"
- day.MouseButton1Down:connect(function()
- daytime = true
- nighttime = false
- turnon = Instance.new("Sound",Character)
- turnon.SoundId = "rbxassetid://858896518"
- turnon.Volume = 1
- turnon.Pitch = 1.05
- turnon:Play()
- removeuseless:AddItem(turnon,2)
- coroutine.wrap(function()
- while daytime do
- game.Lighting.TimeOfDay = 12
- game.Lighting.GlobalShadows = true
- game.Lighting.Ambient = Color3.fromRGB(10,10,10)
- game.Lighting.Brightness = 1
- wait()
- end
- end)()
- end)
- local night = Instance.new("TextButton")
- night.Parent = screenGui
- night.Position = UDim2.new(0, 165, 0, 370)
- night.Size = UDim2.new(0, 50, 0, 20)
- night.BackgroundColor3 = BrickColor.new("Really black").Color
- night.TextColor = BrickColor.new("White")
- night.Text = "Night"
- night.MouseButton1Down:connect(function()
- daytime = false
- nighttime = true
- turnoff = Instance.new("Sound",Character)
- turnoff.SoundId = "rbxassetid://858896518"
- turnoff.Volume = 1
- turnoff.Pitch = .9
- turnoff:Play()
- removeuseless:AddItem(turnoff,2)
- coroutine.wrap(function()
- while nighttime do
- game.Lighting.TimeOfDay = 0
- game.Lighting.GlobalShadows = false
- game.Lighting.Ambient = Color3.new(0,0,0)
- game.Lighting.Brightness = 0
- wait()
- end
- end)()
- end)
- volumeup = Instance.new("ImageButton")
- volumeup.Parent = screenGui
- volumeup.Position = UDim2.new(0, 29, 0, 327)
- volumeup.BackgroundTransparency = 1
- volumeup.Size = UDim2.new(0, 25, 0, 25)
- volumeup.Image = "rbxassetid://29563813"
- volumeup.MouseButton1Down:connect(function()
- if soundIsPlaying then
- vol.Text = vol.Text + 1
- end
- end)
- volumedown = Instance.new("ImageButton")
- volumedown.Parent = screenGui
- volumedown.Rotation = 180
- volumedown.Position = UDim2.new(0, 111, 0, 327)
- volumedown.BackgroundTransparency = 1
- volumedown.Size = UDim2.new(0, 25, 0, 25)
- volumedown.Image = "rbxassetid://29563813"
- Supr14 = Instance.new("ImageLabel")
- Supr14.Parent = screenGui
- Supr14.Rotation = 0
- Supr14.Position = UDim2.new(0, 13, 0, 222)
- Supr14.BackgroundTransparency = 1
- Supr14.Size = UDim2.new(0, 240, 0, 60)
- Supr14.Image = "rbxassetid://1815697653"
- volumedown.MouseButton1Down:connect(function()
- if soundIsPlaying then
- vol.Text = vol.Text - 1
- end
- end)
- stopbutton.MouseButton1Down:connect(function()
- if idrewsomething then
- if soundIsPlaying then
- sound1:Remove()
- soundIsPlaying = false
- workspace.CurrentCamera.FieldOfView = 70
- pitch.Text = "Pitch"
- vol.Text = "Volume"
- for i,v in pairs(tab) do
- v.Enabled = false
- end
- for i = 1, 10 do
- for _,v in pairs(tab2) do
- v.BrickColor = BrickColor.new("Really black")
- v.Size = v.Size - Vector3.new(0,15,0)
- end
- wait()
- end
- end
- end
- end)
- print("Drawing visualiser!, Made by Supr14")
- end
- end
- game:GetService("UserInputService").InputBegan:connect(onKeyPress)
- function onKeyPress(inputObject, gameProcessedEvent)
- if inputObject.KeyCode == Enum.KeyCode.U then
- local W = math.random(1,50) -- The Generate Width Tip. Keep Value Below 100 Unless You Want Very Bad Lag
- local L = math.random(1,50) -- The Generate Lenght Tip. Keep Value Below 100 Unless You Want Very Bad Lag
- local Enable = true -- Random Color false for off true for on
- local Ran1 = 4 -- This is random size smallest
- local Ran2 = 20 -- This is random size Largest
- Part.Position = Vector3.new(math.random(1,100),math.random(1,100),math.random(1,100))
- --- DO NOT CHANGE ANYTHING BEYOND THIS POINT
- local Folder = Instance.new('Folder')
- Folder.Name = "Blocks"
- Folder.Parent = game.Workspace
- local WValue = 0
- local LValue = 0
- local ValueID = false
- local A = 0
- local B = 0
- local First = false
- local Teller = false
- local Spawn = function()
- if WValue < W and ValueID == false and First == false
- then
- local Part = Instance.new('Part')
- local Size1 = math.random(Ran1,Ran2)
- Part.Size = Vector3.new(4, Size1, 4)
- --- Generate W
- Part.Position = Vector3.new(Part.Position.Z+A, 5+4, Part.Position.X+B)
- A = A + 4
- Part.Parent = workspace
- WValue = WValue + 1
- Part.Anchored = true
- Part.FrontSurface = "Smooth"
- Part.BackSurface = "Smooth"
- Part.BottomSurface = "Smooth"
- Part.TopSurface = "Smooth"
- if Enable == true
- then
- local C = math.random(1,255)
- local D = math.random(1,255)
- local E = math.random(1,255)
- Part.Color = Color3.new (C,D,E)
- Teller = false
- --- End
- end
- if First == false
- then
- game.Workspace.Part.Name = "A"
- First = true
- end
- end
- if WValue == W
- then
- ValueID = true
- end
- if WValue < W and ValueID == false
- then
- local Part = Instance.new('Part')
- local Size1 = math.random(Ran1,Ran2)
- Part.Size = Vector3.new(4, Size1, 4)
- --- Generate W
- Part.Position = Vector3.new(game.Workspace.A.Position.Z+A, 5+4,game.Workspace.A.Position.X +B) --game.Workspace.A.Position.X
- A = A + 4
- Part.Parent = Folder
- WValue = WValue + 1
- Part.Anchored = true
- Part.FrontSurface = "Smooth"
- Part.BackSurface = "Smooth"
- Part.BottomSurface = "Smooth"
- Part.TopSurface = "Smooth"
- Teller = false
- -- Random Color
- if Enable == true
- then
- local C = math.random(1,255)
- local D = math.random(1,255)
- local E = math.random(1,255)
- Part.Color = Color3.new (C,D,E)
- Teller = false
- --- End
- end
- end
- if WValue == W and LValue < L
- then
- print("_")
- B = B + 4
- WValue = 0
- ValueID = false
- First = true
- LValue = LValue + 1
- Teller = true
- end
- if Teller == true
- then
- A = 0
- end
- end
- repeat
- wait(0.01)
- Spawn()
- until false
- end
- end
- game:GetService("UserInputService").InputBegan:connect(onKeyPress)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement