Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- Objects
- local Musicify = Instance.new("ScreenGui")
- local OpenFrame = Instance.new("Frame")
- local Open = Instance.new("ImageButton")
- local MainFrame = Instance.new("Frame")
- local TopBar = Instance.new("Frame")
- local MusicifyTxt = Instance.new("TextLabel")
- local BottomBar = Instance.new("Frame")
- local Verison = Instance.new("TextLabel")
- local V = Instance.new("TextLabel")
- local X1 = Instance.new("TextButton")
- local IDHere = Instance.new("TextBox")
- local Stop = Instance.new("ImageButton")
- local Play = Instance.new("ImageButton")
- local PresetSongSlider = Instance.new("ScrollingFrame")
- local BetrayedID = Instance.new("TextButton")
- local GucciGangID = Instance.new("TextButton")
- local RockStarID = Instance.new("TextButton")
- local HeathensID = Instance.new("TextButton")
- local ThunderID = Instance.new("TextButton")
- local GodsPlanID = Instance.new("TextButton")
- local BankAccID = Instance.new("TextButton")
- local Bar2 = Instance.new("Frame")
- local Bar1 = Instance.new("Frame")
- local DiscoButton = Instance.new("TextButton")
- local ChangelogBtn = Instance.new("TextButton")
- local ChangelogFrame = Instance.new("Frame")
- local ChangelogTxt = Instance.new("TextLabel")
- local Bar1_2 = Instance.new("Frame")
- local AddTxt = Instance.new("TextLabel")
- local PointzDcTxt = Instance.new("TextLabel")
- local NothingTxt = Instance.new("TextLabel")
- local AddFunTxt = Instance.new("TextLabel")
- local PitchandVolTxt = Instance.new("TextLabel")
- local CustomScriptTxt = Instance.new("TextLabel")
- local MusicTorsoTxt = Instance.new("TextLabel")
- local TryingtoTxt = Instance.new("TextLabel")
- local AudioVisualTxt = Instance.new("TextLabel")
- local NextVTxt = Instance.new("TextLabel")
- local LearningLuaTxt = Instance.new("TextLabel")
- local VolumeHere = Instance.new("TextBox")
- local PitchHere = Instance.new("TextBox")
- local DestroyGuiBtn = Instance.new("TextButton")
- local FunMenuBtn = Instance.new("TextButton")
- local FunMenuFrame = Instance.new("Frame")
- local UltimateDiscoManBtn = Instance.new("TextButton")
- local IDDiscoMan = Instance.new("TextBox")
- local MadeBy2Txt = Instance.new("TextLabel")
- local MadeByTxt = Instance.new("TextLabel")
- local TextLabel = Instance.new("TextLabel")
- local TextLabel_2 = Instance.new("TextLabel")
- -- Properties
- Musicify.Name = "Musicify"
- Musicify.Parent = game.CoreGui
- OpenFrame.Name = "OpenFrame"
- OpenFrame.Parent = Musicify
- OpenFrame.BackgroundColor3 = Color3.new(0.215686, 0.258824, 0.980392)
- OpenFrame.BorderColor3 = Color3.new(1, 1, 1)
- OpenFrame.BorderSizePixel = 3
- OpenFrame.Position = UDim2.new(0, 0, 0.683794439, 0)
- OpenFrame.Size = UDim2.new(0, 30, 0, 29)
- Open.Name = "Open"
- Open.Parent = OpenFrame
- Open.BackgroundColor3 = Color3.new(0.145098, 0.2, 0.678431)
- Open.BackgroundTransparency = 0.15999999642372
- Open.BorderSizePixel = 0
- Open.Size = UDim2.new(0, 29, 0, 29)
- Open.Image = "rbxassetid://1380525838"
- Open.MouseButton1Down:connect(function()
- OpenFrame.Visible = false
- MainFrame.Visible = true
- end)
- MainFrame.Name = "MainFrame"
- MainFrame.Parent = Musicify
- MainFrame.Active = true
- MainFrame.BackgroundColor3 = Color3.new(0.215686, 0.258824, 0.980392)
- MainFrame.BackgroundTransparency = 0.11999999731779
- MainFrame.BorderColor3 = Color3.new(1, 1, 1)
- MainFrame.BorderSizePixel = 3
- MainFrame.Draggable = true
- MainFrame.Position = UDim2.new(0.0095257787, 0, 0.0228556879, 0)
- MainFrame.Selectable = true
- MainFrame.Size = UDim2.new(0, 348, 0, 261)
- MainFrame.Visible = false
- TopBar.Name = "TopBar"
- TopBar.Parent = MainFrame
- TopBar.Active = true
- TopBar.BackgroundColor3 = Color3.new(0.145098, 0.2, 0.678431)
- TopBar.BorderSizePixel = 0
- TopBar.Selectable = true
- TopBar.Size = UDim2.new(0, 348, 0, 31)
- MusicifyTxt.Name = "MusicifyTxt"
- MusicifyTxt.Parent = TopBar
- MusicifyTxt.BackgroundColor3 = Color3.new(1, 1, 1)
- MusicifyTxt.BackgroundTransparency = 1
- MusicifyTxt.BorderSizePixel = 0
- MusicifyTxt.Position = UDim2.new(0.493941069, 0, 0.112903222, 0)
- MusicifyTxt.Size = UDim2.new(0, 52, 0, 24)
- MusicifyTxt.Font = Enum.Font.SciFi
- MusicifyTxt.Text = "Musicify"
- MusicifyTxt.TextColor3 = Color3.new(1, 1, 1)
- MusicifyTxt.TextSize = 25
- BottomBar.Name = "BottomBar"
- BottomBar.Parent = TopBar
- BottomBar.BackgroundColor3 = Color3.new(0.129412, 0.180392, 0.619608)
- BottomBar.BorderColor3 = Color3.new(1, 1, 1)
- BottomBar.BorderSizePixel = 0
- BottomBar.Position = UDim2.new(0, 0, 1, 0)
- BottomBar.Size = UDim2.new(0, 348, 0, 5)
- Verison.Name = "Verison"
- Verison.Parent = TopBar
- Verison.BackgroundColor3 = Color3.new(1, 1, 1)
- Verison.BackgroundTransparency = 1
- Verison.Position = UDim2.new(0, 0, 0.161290318, 0)
- Verison.Size = UDim2.new(0, 70, 0, 31)
- Verison.Font = Enum.Font.SciFi
- Verison.Text = "Version"
- Verison.TextColor3 = Color3.new(1, 1, 1)
- Verison.TextSize = 19
- V.Name = "V#"
- V.Parent = TopBar
- V.BackgroundColor3 = Color3.new(1, 1, 1)
- V.BackgroundTransparency = 1
- V.Position = UDim2.new(0.151419565, 0, 0.387096763, 0)
- V.Size = UDim2.new(0, 70, 0, 19)
- V.Font = Enum.Font.SciFi
- V.Text = "0.54"
- V.TextColor3 = Color3.new(1, 1, 1)
- V.TextSize = 18
- V.TextWrapped = true
- X1.Name = "X1"
- X1.Parent = MainFrame
- X1.BackgroundColor3 = Color3.new(1, 1, 1)
- X1.BackgroundTransparency = 1
- X1.LayoutOrder = 1
- X1.Position = UDim2.new(0.902298868, 0, 0.0153256701, 0)
- X1.Size = UDim2.new(0, 34, 0, 24)
- X1.Font = Enum.Font.SourceSans
- X1.Text = "X"
- X1.TextColor3 = Color3.new(1, 1, 1)
- X1.TextSize = 27
- X1.MouseButton1Down:connect(function()
- MainFrame.Visible = false
- OpenFrame.Visible = true
- end)
- IDHere.Name = "IDHere"
- IDHere.Parent = MainFrame
- IDHere.BackgroundColor3 = Color3.new(0.145098, 0.2, 0.678431)
- IDHere.BackgroundTransparency = 0.15999999642372
- IDHere.BorderColor3 = Color3.new(1, 1, 1)
- IDHere.BorderSizePixel = 2
- IDHere.Position = UDim2.new(0.50999999, 0, 0.181999996, 0)
- IDHere.Size = UDim2.new(0, 165, 0, 32)
- IDHere.Font = Enum.Font.SciFi
- IDHere.Text = "ID Here"
- IDHere.TextColor3 = Color3.new(1, 1, 1)
- IDHere.TextSize = 25
- Stop.Name = "Stop"
- Stop.Parent = MainFrame
- Stop.BackgroundColor3 = Color3.new(0.145098, 0.2, 0.678431)
- Stop.BackgroundTransparency = 0.15999999642372
- Stop.BorderColor3 = Color3.new(1, 1, 1)
- Stop.BorderSizePixel = 2
- Stop.Position = UDim2.new(0.787999988, 0, 0.333831429, 0)
- Stop.Size = UDim2.new(0, 36, 0, 33)
- Stop.Image = "rbxassetid://1380520884"
- Stop.MouseButton1Down:connect(function()
- game.Players.LocalPlayer.Character.Torso.Sound:Destroy()
- end)
- Play.Name = "Play"
- Play.Parent = MainFrame
- Play.BackgroundColor3 = Color3.new(0.145098, 0.2, 0.678431)
- Play.BackgroundTransparency = 0.15999999642372
- Play.BorderColor3 = Color3.new(1, 1, 1)
- Play.BorderSizePixel = 2
- Play.Position = UDim2.new(0.597701013, 0, 0.335000008, 0)
- Play.Size = UDim2.new(0, 36, 0, 33)
- Play.Image = "rbxassetid://1380525838"
- function PlayMusic(ID)
- for i, v in pairs (game.Workspace:GetChildren()) do
- if v:IsA("Sound") then
- v:Remove()
- end
- end
- local music = Instance.new("Sound")
- local asset = "rbxassetid://"
- music.SoundId = asset .. ID
- music.Parent = game.Players.LocalPlayer.Character.Torso
- music.Volume = VolumeHere.Text
- music.Pitch = PitchHere.Text
- music.Looped = true
- music:Play()
- end
- Play.MouseButton1Down:connect(function()
- PlayMusic(IDHere.Text)
- end)
- PresetSongSlider.Name = "PresetSongSlider"
- PresetSongSlider.Parent = MainFrame
- PresetSongSlider.BackgroundColor3 = Color3.new(0.215686, 0.258824, 0.980392)
- PresetSongSlider.BackgroundTransparency = 0.11999999731779
- PresetSongSlider.BorderColor3 = Color3.new(1, 1, 1)
- PresetSongSlider.BorderSizePixel = 0
- PresetSongSlider.Position = UDim2.new(0, 0, 0.160919547, 0)
- PresetSongSlider.Size = UDim2.new(0, 168, 0, 219)
- PresetSongSlider.BottomImage = "rbxassetid://1300886086"
- PresetSongSlider.CanvasSize = UDim2.new(0, 0, 1, 0)
- PresetSongSlider.MidImage = "rbxassetid://1300885335"
- PresetSongSlider.ScrollBarThickness = 10
- PresetSongSlider.TopImage = "rbxassetid://1300884734"
- BetrayedID.Name = "BetrayedID"
- BetrayedID.Parent = PresetSongSlider
- BetrayedID.BackgroundColor3 = Color3.new(0.145098, 0.2, 0.678431)
- BetrayedID.BackgroundTransparency = 0.15999999642372
- BetrayedID.BorderColor3 = Color3.new(1, 1, 1)
- BetrayedID.BorderSizePixel = 2
- BetrayedID.Position = UDim2.new(0.0595238097, 0, 0.0218978096, 0)
- BetrayedID.Size = UDim2.new(0, 137, 0, 24)
- BetrayedID.Font = Enum.Font.SciFi
- BetrayedID.Text = "Lil Xan - Betrayed"
- BetrayedID.TextColor3 = Color3.new(1, 1, 1)
- BetrayedID.TextSize = 13
- BetrayedID.MouseButton1Down:connect(function()
- local s = Instance.new("Sound")
- s.Name = "Sound"
- s.SoundId = "http://www.roblox.com/asset/?id=1077150179"
- s.Volume = VolumeHere.Text
- s.Pitch = PitchHere.Text
- s.Looped = true
- s.archivable = false
- s.Parent = game.Players.LocalPlayer.Character.Torso
- s:play()
- end)
- GucciGangID.Name = "GucciGangID"
- GucciGangID.Parent = PresetSongSlider
- GucciGangID.BackgroundColor3 = Color3.new(0.145098, 0.2, 0.678431)
- GucciGangID.BackgroundTransparency = 0.15999999642372
- GucciGangID.BorderColor3 = Color3.new(1, 1, 1)
- GucciGangID.BorderSizePixel = 2
- GucciGangID.Position = UDim2.new(0.0595238097, 0, 0.149635032, 0)
- GucciGangID.Size = UDim2.new(0, 137, 0, 26)
- GucciGangID.Font = Enum.Font.SciFi
- GucciGangID.Text = "Lil Pump - Gucci Gang"
- GucciGangID.TextColor3 = Color3.new(1, 1, 1)
- GucciGangID.TextSize = 13
- GucciGangID.MouseButton1Down:connect(function()
- local s = Instance.new("Sound")
- s.Name = "Sound"
- s.SoundId = "http://www.roblox.com/asset/?id=1298529687"
- s.Volume = VolumeHere.Text
- s.Pitch = PitchHere.Text
- s.Looped = true
- s.archivable = false
- s.Parent = game.Players.LocalPlayer.Character.Torso
- s:play()
- end)
- BankAccID.Name = "BankAccID"
- BankAccID.Parent = PresetSongSlider
- BankAccID.BackgroundColor3 = Color3.new(0.145098, 0.2, 0.678431)
- BankAccID.BackgroundTransparency = 0.15999999642372
- BankAccID.BorderColor3 = Color3.new(1, 1, 1)
- BankAccID.BorderSizePixel = 2
- BankAccID.Position = UDim2.new(0.0595238097, 0, 0.288321167, 0)
- BankAccID.Size = UDim2.new(0, 137, 0, 26)
- BankAccID.Font = Enum.Font.SciFi
- BankAccID.Text = "21 Savage - Bank Acc"
- BankAccID.TextColor3 = Color3.new(1, 1, 1)
- BankAccID.TextSize = 13
- BankAccID.MouseButton1Down:connect(function()
- local s = Instance.new("Sound")
- s.Name = "Sound"
- s.SoundId = "http://www.roblox.com/asset/?id=1127504553"
- s.Volume = VolumeHere.Text
- s.Pitch = PitchHere.Text
- s.Looped = true
- s.archivable = false
- s.Parent = game.Players.LocalPlayer.Character.Torso
- s:play()
- end)
- RockStarID.Name = "RockStarID"
- RockStarID.Parent = PresetSongSlider
- RockStarID.BackgroundColor3 = Color3.new(0.145098, 0.2, 0.678431)
- RockStarID.BackgroundTransparency = 0.15999999642372
- RockStarID.BorderColor3 = Color3.new(1, 1, 1)
- RockStarID.BorderSizePixel = 2
- RockStarID.Position = UDim2.new(0.0595238097, 0, 0.43065694, 0)
- RockStarID.Size = UDim2.new(0, 137, 0, 24)
- RockStarID.Font = Enum.Font.SciFi
- RockStarID.Text = "Post Malone - Rockstar"
- RockStarID.TextColor3 = Color3.new(1, 1, 1)
- RockStarID.TextSize = 13
- RockStarID.MouseButton1Down:connect(function()
- local s = Instance.new("Sound")
- s.Name = "Sound"
- s.SoundId = "http://www.roblox.com/asset/?id=1054415887"
- s.Volume = VolumeHere.Text
- s.Pitch = PitchHere.Text
- s.Looped = true
- s.archivable = false
- s.Parent = game.Players.LocalPlayer.Character.Torso
- s:play()
- end)
- HeathensID.Name = "HeathensID"
- HeathensID.Parent = PresetSongSlider
- HeathensID.BackgroundColor3 = Color3.new(0.145098, 0.2, 0.678431)
- HeathensID.BackgroundTransparency = 0.15999999642372
- HeathensID.BorderColor3 = Color3.new(1, 1, 1)
- HeathensID.BorderSizePixel = 2
- HeathensID.Position = UDim2.new(0.0595238097, 0, 0.572992682, 0)
- HeathensID.Size = UDim2.new(0, 137, 0, 24)
- HeathensID.Font = Enum.Font.SciFi
- HeathensID.Text = "21 Pilots - Heathens"
- HeathensID.TextColor3 = Color3.new(1, 1, 1)
- HeathensID.TextSize = 13
- HeathensID.MouseButton1Down:connect(function()
- local s = Instance.new("Sound")
- s.Name = "Sound"
- s.SoundId = "http://www.roblox.com/asset/?id=437141803"
- s.Volume = VolumeHere.Text
- s.Pitch = PitchHere.Text
- s.Looped = true
- s.archivable = false
- s.Parent = game.Players.LocalPlayer.Character.Torso
- s:play()
- end)
- ThunderID.Name = "ThunderID"
- ThunderID.Parent = PresetSongSlider
- ThunderID.BackgroundColor3 = Color3.new(0.145098, 0.2, 0.678431)
- ThunderID.BackgroundTransparency = 0.15999999642372
- ThunderID.BorderColor3 = Color3.new(1, 1, 1)
- ThunderID.BorderSizePixel = 2
- ThunderID.Position = UDim2.new(0.0595238097, 0, 0.708029211, 0)
- ThunderID.Size = UDim2.new(0, 137, 0, 24)
- ThunderID.Font = Enum.Font.SciFi
- ThunderID.Text = "ImagineDragons Thunder"
- ThunderID.TextColor3 = Color3.new(1, 1, 1)
- ThunderID.TextSize = 12
- ThunderID.MouseButton1Down:connect(function()
- local s = Instance.new("Sound")
- s.Name = "Sound"
- s.SoundId = "http://www.roblox.com/asset/?id=755156652"
- s.Volume = VolumeHere.Text
- s.Pitch = PitchHere.Text
- s.Looped = true
- s.archivable = false
- s.Parent = game.Players.LocalPlayer.Character.Torso
- s:play()
- end)
- GodsPlanID.Name = "GodsPlanID"
- GodsPlanID.Parent = PresetSongSlider
- GodsPlanID.BackgroundColor3 = Color3.new(0.145098, 0.2, 0.678431)
- GodsPlanID.BackgroundTransparency = 0.15999999642372
- GodsPlanID.BorderColor3 = Color3.new(1, 1, 1)
- GodsPlanID.BorderSizePixel = 2
- GodsPlanID.Position = UDim2.new(0.0599999987, 0, 0.845000029, 0)
- GodsPlanID.Size = UDim2.new(0, 137, 0, 24)
- GodsPlanID.Font = Enum.Font.SciFi
- GodsPlanID.Text = "Drake - God's Plan"
- GodsPlanID.TextColor3 = Color3.new(1, 1, 1)
- GodsPlanID.TextSize = 13
- GodsPlanID.MouseButton1Down:connect(function()
- local s = Instance.new("Sound")
- s.Name = "Sound"
- s.SoundId = "http://www.roblox.com/asset/?id=1375384985"
- s.Volume = VolumeHere.Text
- s.Pitch = PitchHere.Text
- s.Looped = true
- s.archivable = false
- s.Parent = game.Players.LocalPlayer.Character.Torso
- s:play()
- end)
- Bar2.Name = "Bar2"
- Bar2.Parent = MainFrame
- Bar2.BackgroundColor3 = Color3.new(1, 1, 1)
- Bar2.BorderSizePixel = 0
- Bar2.Position = UDim2.new(0.482758611, 0, 0.157088116, 0)
- Bar2.Size = UDim2.new(0, 4, 0, 220)
- Bar1.Name = "Bar1"
- Bar1.Parent = MainFrame
- Bar1.BackgroundColor3 = Color3.new(1, 1, 1)
- Bar1.BorderSizePixel = 0
- Bar1.Position = UDim2.new(0, 0, 0.137931034, 0)
- Bar1.Size = UDim2.new(0, 349, 0, 5)
- DiscoButton.Name = "DiscoButton"
- DiscoButton.Parent = MainFrame
- DiscoButton.BackgroundColor3 = Color3.new(0.145098, 0.2, 0.678431)
- DiscoButton.BackgroundTransparency = 0.15999999642372
- DiscoButton.BorderColor3 = Color3.new(1, 1, 1)
- DiscoButton.BorderSizePixel = 2
- DiscoButton.Position = UDim2.new(0.597701132, 0, 0.685000002, 0)
- DiscoButton.Size = UDim2.new(0, 96, 0, 27)
- DiscoButton.Font = Enum.Font.SciFi
- DiscoButton.Text = "Disco"
- DiscoButton.TextColor3 = Color3.new(1, 1, 1)
- DiscoButton.TextSize = 20
- DiscoButton.MouseButton1Down:connect(function()
- while wait(0.3) do
- game.Lighting.Ambient = Color3.new(math.random(),math.random(),math.random())
- end
- end)
- ChangelogBtn.Name = "ChangelogBtn"
- ChangelogBtn.Parent = MainFrame
- ChangelogBtn.BackgroundColor3 = Color3.new(0.145098, 0.2, 0.678431)
- ChangelogBtn.BackgroundTransparency = 0.15999999642372
- ChangelogBtn.BorderColor3 = Color3.new(1, 1, 1)
- ChangelogBtn.BorderSizePixel = 2
- ChangelogBtn.Position = UDim2.new(0.494252861, 0, 0.819923401, 0)
- ChangelogBtn.Size = UDim2.new(0, 86, 0, 20)
- ChangelogBtn.Font = Enum.Font.SciFi
- ChangelogBtn.Text = "Changelog"
- ChangelogBtn.TextColor3 = Color3.new(1, 1, 1)
- ChangelogBtn.TextSize = 15
- ChangelogBtn.MouseButton1Down:connect(function()
- ChangelogFrame.Visible = not ChangelogFrame.Visible
- end)
- ChangelogFrame.Name = "ChangelogFrame"
- ChangelogFrame.Parent = MainFrame
- ChangelogFrame.BackgroundColor3 = Color3.new(0.215686, 0.258824, 0.980392)
- ChangelogFrame.BackgroundTransparency = 0.11999999731779
- ChangelogFrame.BorderColor3 = Color3.new(1, 1, 1)
- ChangelogFrame.BorderSizePixel = 3
- ChangelogFrame.Position = UDim2.new(1.00862074, 0, 0.157088116, 0)
- ChangelogFrame.Size = UDim2.new(0, 117, 0, 220)
- ChangelogFrame.Visible = false
- ChangelogTxt.Name = "ChangelogTxt"
- ChangelogTxt.Parent = ChangelogFrame
- ChangelogTxt.BackgroundColor3 = Color3.new(1, 1, 1)
- ChangelogTxt.BackgroundTransparency = 1
- ChangelogTxt.Position = UDim2.new(0.264957279, 0, 0, 0)
- ChangelogTxt.Size = UDim2.new(0, 54, 0, 28)
- ChangelogTxt.Font = Enum.Font.SciFi
- ChangelogTxt.Text = "Changelog"
- ChangelogTxt.TextColor3 = Color3.new(1, 1, 1)
- ChangelogTxt.TextSize = 20
- Bar1_2.Name = "Bar1"
- Bar1_2.Parent = ChangelogFrame
- Bar1_2.BackgroundColor3 = Color3.new(1, 1, 1)
- Bar1_2.BorderSizePixel = 0
- Bar1_2.Position = UDim2.new(0.051282052, 0, 0.129032254, 0)
- Bar1_2.Size = UDim2.new(0, 105, 0, 1)
- AddTxt.Name = "Add?Txt"
- AddTxt.Parent = ChangelogFrame
- AddTxt.BackgroundColor3 = Color3.new(1, 1, 1)
- AddTxt.BackgroundTransparency = 1
- AddTxt.Position = UDim2.new(-0.282051295, 0, 0.824884772, 0)
- AddTxt.Size = UDim2.new(0, 182, 0, 14)
- AddTxt.Font = Enum.Font.SourceSans
- AddTxt.Text = "What Else Should I add?"
- AddTxt.TextColor3 = Color3.new(1, 1, 1)
- AddTxt.TextSize = 13
- PointzDcTxt.Name = "PointzDcTxt"
- PointzDcTxt.Parent = ChangelogFrame
- PointzDcTxt.BackgroundColor3 = Color3.new(1, 1, 1)
- PointzDcTxt.BackgroundTransparency = 1
- PointzDcTxt.Position = UDim2.new(-0.282051295, 0, 0.894009233, 0)
- PointzDcTxt.Size = UDim2.new(0, 182, 0, 12)
- PointzDcTxt.Font = Enum.Font.SourceSans
- PointzDcTxt.Text = "Pointz#6115"
- PointzDcTxt.TextColor3 = Color3.new(1, 1, 1)
- PointzDcTxt.TextSize = 15
- NothingTxt.Name = "NothingTxt"
- NothingTxt.Parent = ChangelogFrame
- NothingTxt.BackgroundColor3 = Color3.new(1, 1, 1)
- NothingTxt.BackgroundTransparency = 1
- NothingTxt.Position = UDim2.new(-0.282051295, 0, 0.129032224, 0)
- NothingTxt.Size = UDim2.new(0, 182, 0, 17)
- NothingTxt.Font = Enum.Font.SourceSans
- NothingTxt.Text = "Added 3 More Songs"
- NothingTxt.TextColor3 = Color3.new(1, 1, 1)
- NothingTxt.TextSize = 15
- AddFunTxt.Name = "AddFunTxt"
- AddFunTxt.Parent = ChangelogFrame
- AddFunTxt.BackgroundColor3 = Color3.new(1, 1, 1)
- AddFunTxt.BackgroundTransparency = 1
- AddFunTxt.Position = UDim2.new(-0.282051295, 0, 0.200000003, 0)
- AddFunTxt.Size = UDim2.new(0, 182, 0, 14)
- AddFunTxt.Font = Enum.Font.SourceSans
- AddFunTxt.Text = "Added Fun Menu"
- AddFunTxt.TextColor3 = Color3.new(1, 1, 1)
- AddFunTxt.TextSize = 15
- PitchandVolTxt.Name = "PitchandVolTxt"
- PitchandVolTxt.Parent = ChangelogFrame
- PitchandVolTxt.BackgroundColor3 = Color3.new(1, 1, 1)
- PitchandVolTxt.BackgroundTransparency = 1
- PitchandVolTxt.Position = UDim2.new(-0.282051295, 0, 0.271889389, 0)
- PitchandVolTxt.Size = UDim2.new(0, 182, 0, 14)
- PitchandVolTxt.Font = Enum.Font.SourceSans
- PitchandVolTxt.Text = "Added Pitch + Volume"
- PitchandVolTxt.TextColor3 = Color3.new(1, 1, 1)
- PitchandVolTxt.TextSize = 14
- CustomScriptTxt.Name = "CustomScriptTxt"
- CustomScriptTxt.Parent = ChangelogFrame
- CustomScriptTxt.BackgroundColor3 = Color3.new(1, 1, 1)
- CustomScriptTxt.BackgroundTransparency = 1
- CustomScriptTxt.Position = UDim2.new(-0.286324799, 0, 0.331797242, 0)
- CustomScriptTxt.Size = UDim2.new(0, 182, 0, 14)
- CustomScriptTxt.Font = Enum.Font.SourceSans
- CustomScriptTxt.Text = "+ Custom Script"
- CustomScriptTxt.TextColor3 = Color3.new(1, 1, 1)
- CustomScriptTxt.TextSize = 15
- MusicTorsoTxt.Name = "MusicTorsoTxt"
- MusicTorsoTxt.Parent = ChangelogFrame
- MusicTorsoTxt.BackgroundColor3 = Color3.new(1, 1, 1)
- MusicTorsoTxt.BackgroundTransparency = 1
- MusicTorsoTxt.Position = UDim2.new(-0.286324799, 0, 0.396313369, 0)
- MusicTorsoTxt.Size = UDim2.new(0, 182, 0, 14)
- MusicTorsoTxt.Font = Enum.Font.SourceSans
- MusicTorsoTxt.Text = "+ Music From Torso"
- MusicTorsoTxt.TextColor3 = Color3.new(1, 1, 1)
- MusicTorsoTxt.TextSize = 15
- TryingtoTxt.Name = "TryingtoTxt"
- TryingtoTxt.Parent = ChangelogFrame
- TryingtoTxt.BackgroundColor3 = Color3.new(1, 1, 1)
- TryingtoTxt.BackgroundTransparency = 1
- TryingtoTxt.Position = UDim2.new(-0.282051295, 0, 0.511520743, 0)
- TryingtoTxt.Size = UDim2.new(0, 182, 0, 14)
- TryingtoTxt.Font = Enum.Font.SourceSans
- TryingtoTxt.Text = "Yes I am trying to"
- TryingtoTxt.TextColor3 = Color3.new(1, 1, 1)
- TryingtoTxt.TextSize = 15
- AudioVisualTxt.Name = "AudioVisualTxt"
- AudioVisualTxt.Parent = ChangelogFrame
- AudioVisualTxt.BackgroundColor3 = Color3.new(1, 1, 1)
- AudioVisualTxt.BackgroundTransparency = 1
- AudioVisualTxt.Position = UDim2.new(-0.282051295, 0, 0.57603687, 0)
- AudioVisualTxt.Size = UDim2.new(0, 182, 0, 14)
- AudioVisualTxt.Font = Enum.Font.SourceSans
- AudioVisualTxt.Text = "Do a Audio Visualizer"
- AudioVisualTxt.TextColor3 = Color3.new(1, 1, 1)
- AudioVisualTxt.TextSize = 14
- NextVTxt.Name = "NextV?Txt"
- NextVTxt.Parent = ChangelogFrame
- NextVTxt.BackgroundColor3 = Color3.new(1, 1, 1)
- NextVTxt.BackgroundTransparency = 1
- NextVTxt.Position = UDim2.new(-0.282051295, 0, 0.635944724, 0)
- NextVTxt.Size = UDim2.new(0, 182, 0, 14)
- NextVTxt.Font = Enum.Font.SourceSans
- NextVTxt.Text = "Maybe Next Version?"
- NextVTxt.TextColor3 = Color3.new(1, 1, 1)
- NextVTxt.TextSize = 14
- LearningLuaTxt.Name = "LearningLuaTxt"
- LearningLuaTxt.Parent = ChangelogFrame
- LearningLuaTxt.BackgroundColor3 = Color3.new(1, 1, 1)
- LearningLuaTxt.BackgroundTransparency = 1
- LearningLuaTxt.Position = UDim2.new(-0.282051295, 0, 0.691244245, 0)
- LearningLuaTxt.Size = UDim2.new(0, 182, 0, 14)
- LearningLuaTxt.Font = Enum.Font.SourceSans
- LearningLuaTxt.Text = "Im Just Learning lua"
- LearningLuaTxt.TextColor3 = Color3.new(1, 1, 1)
- LearningLuaTxt.TextSize = 14
- VolumeHere.Name = "VolumeHere"
- VolumeHere.Parent = MainFrame
- VolumeHere.BackgroundColor3 = Color3.new(0.145098, 0.2, 0.678431)
- VolumeHere.BackgroundTransparency = 0.15999999642372
- VolumeHere.BorderColor3 = Color3.new(1, 1, 1)
- VolumeHere.BorderSizePixel = 2
- VolumeHere.Position = UDim2.new(0.74712646, 0, 0.547892749, 0)
- VolumeHere.Size = UDim2.new(0, 88, 0, 28)
- VolumeHere.Font = Enum.Font.SciFi
- VolumeHere.Text = "1"
- VolumeHere.TextColor3 = Color3.new(1, 1, 1)
- VolumeHere.TextSize = 20
- PitchHere.Name = "PitchHere"
- PitchHere.Parent = MainFrame
- PitchHere.BackgroundColor3 = Color3.new(0.145098, 0.2, 0.678431)
- PitchHere.BackgroundTransparency = 0.15999999642372
- PitchHere.BorderColor3 = Color3.new(1, 1, 1)
- PitchHere.BorderSizePixel = 2
- PitchHere.Position = UDim2.new(0.494252861, 0, 0.545977056, 0)
- PitchHere.Size = UDim2.new(0, 86, 0, 28)
- PitchHere.Font = Enum.Font.SciFi
- PitchHere.Text = "1"
- PitchHere.TextColor3 = Color3.new(1, 1, 1)
- PitchHere.TextSize = 20
- DestroyGuiBtn.Name = "DestroyGuiBtn"
- DestroyGuiBtn.Parent = MainFrame
- DestroyGuiBtn.BackgroundColor3 = Color3.new(0.145098, 0.2, 0.678431)
- DestroyGuiBtn.BackgroundTransparency = 0.15999999642372
- DestroyGuiBtn.BorderColor3 = Color3.new(1, 1, 1)
- DestroyGuiBtn.BorderSizePixel = 2
- DestroyGuiBtn.Position = UDim2.new(0.744252861, 0, 0.819999993, 0)
- DestroyGuiBtn.Size = UDim2.new(0, 89, 0, 20)
- DestroyGuiBtn.Font = Enum.Font.SciFi
- DestroyGuiBtn.Text = "Destroy Gui"
- DestroyGuiBtn.TextColor3 = Color3.new(1, 1, 1)
- DestroyGuiBtn.TextSize = 15
- DestroyGuiBtn.MouseButton1Down:connect(function()
- Musicify:Destroy()
- game.Players.LocalPlayer.Character.Torso.Sound:Destroy()
- end)
- FunMenuBtn.Name = "FunMenuBtn"
- FunMenuBtn.Parent = MainFrame
- FunMenuBtn.BackgroundColor3 = Color3.new(0.145098, 0.2, 0.678431)
- FunMenuBtn.BackgroundTransparency = 0.15999999642372
- FunMenuBtn.BorderColor3 = Color3.new(1, 1, 1)
- FunMenuBtn.BorderSizePixel = 2
- FunMenuBtn.Position = UDim2.new(0.632183909, 0, 0.931034505, 0)
- FunMenuBtn.Size = UDim2.new(0, 79, 0, 18)
- FunMenuBtn.Font = Enum.Font.SciFi
- FunMenuBtn.Text = "Fun Menu"
- FunMenuBtn.TextColor3 = Color3.new(1, 1, 1)
- FunMenuBtn.TextSize = 15
- FunMenuBtn.MouseButton1Down:connect(function()
- FunMenuFrame.Visible = not FunMenuFrame.Visible
- end)
- FunMenuFrame.Name = "FunMenuFrame"
- FunMenuFrame.Parent = MainFrame
- FunMenuFrame.BackgroundColor3 = Color3.new(0.215686, 0.258824, 0.980392)
- FunMenuFrame.BackgroundTransparency = 0.11999999731779
- FunMenuFrame.BorderColor3 = Color3.new(1, 1, 1)
- FunMenuFrame.BorderSizePixel = 3
- FunMenuFrame.Position = UDim2.new(0, 0, 1.00766289, 0)
- FunMenuFrame.Size = UDim2.new(0, 348, 0, 32)
- FunMenuFrame.Visible = false
- UltimateDiscoManBtn.Name = "UltimateDiscoManBtn"
- UltimateDiscoManBtn.Parent = FunMenuFrame
- UltimateDiscoManBtn.BackgroundColor3 = Color3.new(0.145098, 0.2, 0.678431)
- UltimateDiscoManBtn.BackgroundTransparency = 0.15999999642372
- UltimateDiscoManBtn.BorderColor3 = Color3.new(1, 1, 1)
- UltimateDiscoManBtn.BorderSizePixel = 2
- UltimateDiscoManBtn.Position = UDim2.new(0.0287356321, 0, 0.1875, 0)
- UltimateDiscoManBtn.Size = UDim2.new(0, 128, 0, 20)
- UltimateDiscoManBtn.Font = Enum.Font.SciFi
- UltimateDiscoManBtn.Text = "Ultimate Disco Man"
- UltimateDiscoManBtn.TextColor3 = Color3.new(1, 1, 1)
- UltimateDiscoManBtn.TextSize = 15
- UltimateDiscoManBtn.MouseButton1Down:connect(function()
- --Put Together By Pointz#6115!
- --Credits To Original Script Makers!
- --*I DID NOT MAKE ANY OF THE SCRIPTS BUT THE FIRE!!!*
- local h = Instance.new("Hint")
- h.Parent = Workspace
- h.Text = "Ultimate Disco Man Is Loading..."
- wait(1.5)
- h:Remove()
- game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = 100
- function PlayMusic(ID)
- for i, v in pairs (game.Workspace:GetChildren()) do
- if v:IsA("Sound") then
- v:Remove()
- end
- end
- local music = Instance.new("Sound")
- local asset = "rbxassetid://"
- music.SoundId = asset .. ID
- music.Parent = game.Players.LocalPlayer.Character.Torso
- music.Volume = VolumeHere.Text
- music.Pitch = PitchHere.Text
- music.Looped = true
- music:Play()
- end
- PlayMusic(IDDiscoMan.Text)
- Parts={}
- function GetDiscoColor(hue)
- local section = hue % 1 * 3
- local secondary = 0.3 * math.pi * (section % 1)
- if section < 1 then
- return Vector3.new(1, 1 - math.cos(secondary), 1 - math.sin(secondary))
- elseif section < 2 then
- return Vector3.new(1 - math.sin(secondary), 1, 1 - math.cos(secondary))
- else
- return Vector3.new(1 - math.cos(secondary), 1 - math.sin(secondary), 1)
- end
- end
- Part = function(x,y,z,color,tr,cc,an,parent)
- local p = Instance.new('Part',parent or Weapon)
- p.formFactor = 'Custom'
- p.Size = Vector3.new(x,y,z)
- p.BrickColor = BrickColor.new(color)
- p.CanCollide = cc
- p.Transparency = tr
- p.Anchored = an
- p.TopSurface,p.BottomSurface = 0,0
- p:BreakJoints''
- table.insert(Parts,p)
- return p
- end
- Weld = function(p0,p1)
- local w = Instance.new('Motor',p0)
- w.Part0 = p0
- w.Part1 = p1
- return w
- end
- Mesh = function(par,num,x,y,z)
- local msh = 0
- if num == 1 then
- msh = Instance.new("SpecialMesh",par)
- msh.MeshId='rbxasset://fonts/torso.mesh'
- msh.TextureId='rbxasset://25701026'
- end
- if num == 2 then
- msh = Instance.new("SpecialMesh",par)
- msh.MeshId='rbxasset://fonts/head.mesh'
- msh.TextureId='rbxassetid://25701026'
- end
- msh.Scale = Vector3.new(x,y,z)
- return msh
- end
- plr=Game.Players.LocalPlayer
- char=plr.Character
- for _,v in pairs(char:GetChildren()) do
- if v.ClassName=="Part" then
- v.Transparency=1
- elseif v.ClassName=="Hat" then
- v.Handle.Mesh.TextureId='rbxassetid://25701026'
- table.insert(Parts,v.Handle)
- end
- end
- t=Part(1,1,1,'',0,false,false,char)
- Mesh(t,1,1,1,1)
- Weld(char.Torso,t)
- a=Part(1,1,1,'',0,false,false,char)
- Mesh(a,1,.5,1,1)
- Weld(char['Right Arm'],a)
- a=Part(1,1,1,'',0,false,false,char)
- Mesh(a,1,.5,1,1)
- Weld(char['Left Arm'],a)
- l=Part(1,1,1,'',0,false,false,char)
- Mesh(l,1,.5,1,1)
- Weld(char['Right Leg'],l)
- l=Part(1,1,1,'',0,false,false,char)
- Mesh(l,1,.5,1,1)
- Weld(char['Left Leg'],l)
- h=Part(1,1,1,'',0,false,false,char)
- Mesh(h,2,1,1,1)
- Weld(char.Head,h)
- Spawn(function()
- while(coroutine.yield())do
- for i=1,#Parts do
- Parts[i].Mesh.VertexColor=GetDiscoColor(tick()*.5)--vertex 4 lyfe
- end
- end;
- end);
- local verlet = {}
- verlet.step_time = 1 / 50
- verlet.gravity = Vector3.new(0, -10, 0)
- local char = game.Players.LocalPlayer.Character
- local torso = char:WaitForChild("Torso")
- local parts = {}
- local render = game:GetService("RunService").RenderStepped
- wait(2)
- local point = {}
- local link = {}
- local rope = {}
- local function ccw(A,B,C)
- return (C.y-A.y) * (B.x-A.x) > (B.y-A.y) * (C.x-A.x)
- end
- local function intersect(A,B,C,D)
- return ccw(A,C,D) ~= ccw(B,C,D) and ccw(A,B,C) ~= ccw(A,B,D)
- end
- local function vec2(v)
- return Vector2.new(v.x, v.z)
- end
- function point:step()
- if not self.fixed then
- local derivative = (self.position - self.last_position) * 0.95
- self.last_position = self.position
- self.position = self.position + derivative + (self.velocity * verlet.step_time ^ 2)
- --[[local torsoP = torso.CFrame * CFrame.new(-1, 0, 0.5)
- local torsoE = torso.CFrame * CFrame.new(1, 0, 0.5)
- local pointE = self.position + torso.CFrame.lookVector * 100
- local doIntersect = intersect(vec2(torsoP.p), vec2(torsoE.p), vec2(self.position), vec2(pointE))
- if not doIntersect then
- self.postition = self.position - torso.CFrame.lookVector * 10
- end]]
- end
- end
- function link:step()
- for i = 1, 1 do
- local distance = self.point1.position - self.point2.position
- local magnitude = distance.magnitude
- local differance = (self.length - magnitude) / magnitude
- local translation = ((self.point1.fixed or self.point2.fixed) and 1 or 0.6) * distance * differance
- if not self.point1.fixed then
- self.point1.position = self.point1.position + translation
- end
- if not self.point2.fixed then
- self.point2.position = self.point2.position - translation
- end
- end
- end
- function verlet.new(class, a, b, c)
- if class == "Point" then
- local new = {}
- setmetatable(new, {__index = point})
- new.class = class
- new.position = a or Vector3.new()
- new.last_position = new.position
- new.velocity = verlet.gravity
- new.fixed = false
- return new
- elseif class == "Link" then
- local new = {}
- setmetatable(new, {__index = link})
- new.class = class
- new.point1 = a
- new.point2 = b
- new.length = c or (a.position - b.position).magnitude
- return new
- elseif class == "Rope" then
- local new = {}
- setmetatable(new, {__index = link})
- new.class = class
- new.start_point = a
- new.finish_point = b
- new.points = {}
- new.links = {}
- local inc = (b - a) / 10
- for i = 0, 10 do
- table.insert(new.points, verlet.new("Point", a + (i * inc)))
- end
- for i = 2, #new.points do
- table.insert(new.links, verlet.new("Link", new.points[i - 1], new.points[i]))
- end
- return new
- end
- end
- local tris = {}
- local triParts = {}
- local function GetDiscoColor(hue)
- local section = hue % 1 * 3
- local secondary = 0.5 * math.pi * (section % 1)
- if section < 1 then
- return Color3.new(1, 1 - math.cos(secondary), 1 - math.sin(secondary))
- elseif section < 2 then
- return Color3.new(1 - math.sin(secondary), 1, 1 - math.cos(secondary))
- else
- return Color3.new(1 - math.cos(secondary), 1 - math.sin(secondary), 1)
- end
- end
- local function setupPart(part)
- part.Anchored = true
- part.FormFactor = 3
- part.CanCollide = false
- part.TopSurface = 10
- part.BottomSurface = 10
- part.LeftSurface = 10
- part.RightSurface = 10
- part.FrontSurface = 10
- part.BackSurface = 10
- part.Material = "Neon"
- local m = Instance.new("SpecialMesh", part)
- m.MeshType = "Wedge"
- m.Scale = Vector3.new(0.2, 1, 1)
- return part
- end
- local function CFrameFromTopBack(at, top, back)
- local right = top:Cross(back)
- return CFrame.new(at.x, at.y, at.z, right.x, top.x, back.x, right.y, top.y, back.y, right.z, top.z, back.z)
- end
- local function drawTri(parent, a, b, c)
- local this = {}
- local mPart1 = table.remove(triParts, 1) or setupPart(Instance.new("Part"))
- local mPart2 = table.remove(triParts, 1) or setupPart(Instance.new("Part"))
- function this:Set(a, b, c)
- local ab, bc, ca = b-a, c-b, a-c
- local abm, bcm, cam = ab.magnitude, bc.magnitude, ca.magnitude
- local edg1 = math.abs(0.5 + ca:Dot(ab)/(abm*abm))
- local edg2 = math.abs(0.5 + ab:Dot(bc)/(bcm*bcm))
- local edg3 = math.abs(0.5 + bc:Dot(ca)/(cam*cam))
- if edg1 < edg2 then
- if edg1 >= edg3 then
- a, b, c = c, a, b
- ab, bc, ca = ca, ab, bc
- abm = cam
- end
- else
- if edg2 < edg3 then
- a, b, c = b, c, a
- ab, bc, ca = bc, ca, ab
- abm = bcm
- else
- a, b, c = c, a, b
- ab, bc, ca = ca, ab, bc
- abm = cam
- end
- end
- local len1 = -ca:Dot(ab)/abm
- local len2 = abm - len1
- local width = (ca + ab.unit*len1).magnitude
- local maincf = CFrameFromTopBack(a, ab:Cross(bc).unit, -ab.unit)
- if len1 > 0.2 then
- mPart1.Parent = parent
- mPart1.Size = Vector3.new(0.2, width, len1)
- mPart1.CFrame = maincf*CFrame.Angles(math.pi,0,math.pi/2)*CFrame.new(0,width/2,len1/2)
- else
- mPart1.Parent = nil
- end
- if len2 > 0.2 then
- mPart2.Parent = parent
- mPart2.Size = Vector3.new(0.2, width, len2)
- mPart2.CFrame = maincf*CFrame.Angles(math.pi,math.pi,-math.pi/2)*CFrame.new(0,width/2,-len1 - len2/2)
- else
- mPart2.Parent = nil
- end
- end
- function this:SetProperty(prop, value)
- mPart1[prop] = value
- mPart2[prop] = value
- end
- this:Set(a, b, c)
- function this:Destroy()
- mPart1:Destroy()
- mPart2:Destroy()
- end
- this.p1 = mPart1
- this.p2 = mPart2
- this.p1.BrickColor = BrickColor.new(GetDiscoColor(math.noise(0.5, 0.5, this.p1.CFrame.Y * 0.5 + time())))
- this.p2.BrickColor = BrickColor.new(GetDiscoColor(math.noise(0.5, 0.5, this.p2.CFrame.Y * 0.5 + time())))
- return this
- end
- function verlet.draw(object, id)
- if object.class == "Point" then
- local part = parts[id]
- part.BrickColor = BrickColor.new(1, 1, 1)
- part.Transparency = 0
- part.formFactor = 3
- part.Anchored = true
- part.CanCollide = false
- part.TopSurface = 0
- part.BottomSurface = 0
- part.Size = Vector3.new(0.35, 0.35, 0.35)
- part.Material = "Neon"
- part.CFrame = CFrame.new(object.position)
- part.Parent = torso
- return part
- elseif object.class == "Link" then
- local part = parts[id]
- local dist = (object.point1.position - object.point2.position).magnitude
- part.Size = Vector3.new(0.2, 0.2, dist)
- part.CFrame = CFrame.new(object.point1.position, object.point2.position) * CFrame.new(0, 0, dist * -0.5)
- part.Parent = torso
- return part
- end
- end
- function verlet.clear()
- for _, v in pairs(workspace:GetChildren()) do
- if v.Name == "Part" then
- v:Destroy()
- end
- end
- end
- local points = {}
- local links = {}
- for x = 0, 2 do
- points[x] = {}
- for y = 0, 3 do
- points[x][y] = verlet.new("Point", torso.Position + Vector3.new(x * 0.8 - 2, 2 - y * 0.8, 5 + y * 0.4))
- points[x][y].fixed = y == 0
- end
- end
- for x = 1, 2 do
- for y = 0, 3 do
- links[#links + 1] = verlet.new("Link", points[x][y], points[x - 1][y], 1 + y * 0.08)
- end
- end
- for x = 0, 2 do
- for y = 1, 3 do
- links[#links + 1] = verlet.new("Link", points[x][y], points[x][y - 1], 1.2 + y * 0.03)
- end
- end
- render:connect(function()
- for x = 0, 2 do
- for y = 0, 3 do
- if y == 0 then
- points[x][y].position = (torso.CFrame * CFrame.new(x * 1 - 1, 1, 0.5)).p
- else
- points[x][y]:step()
- end
- end
- end
- for i = 1, #links do
- links[i]:step()
- end
- for i = 1, #tris do
- triParts[#triParts + 1] = tris[i].p1
- triParts[#triParts + 1] = tris[i].p2
- end
- tris = {}
- for x = 1, 2 do
- for y = 1, 3 do
- tris[#tris + 1] = drawTri(torso, points[x - 1][y - 1].position, points[x - 1][y].position, points[x][y - 1].position)
- tris[#tris + 1] = drawTri(torso, points[x][y].position, points[x - 1][y].position, points[x][y - 1].position)
- end
- end
- end)
- wait(0.1)
- ---------------------------[[[ VARIABLES ]]]---------------------------
- local plr = game.Players.LocalPlayer
- local chr = plr.Character
- local mou = plr:GetMouse()
- local leftarm = false
- local active = false
- local curkey = "e"
- local stunneds = {}
- ---------------------------[[[ PARTS ]]]---------------------------
- Instance.new("ForceField", game.Players.LocalPlayer.Character). Visible = False
- -- 1 - Glock
- obj1 = Instance.new("Model")
- obj1.Name = "Glock"
- obj1.Parent = chr
- -- 2 - Part
- obj2 = Instance.new("Part")
- obj2.CFrame = CFrame.new(Vector3.new(14.25, 3.51428652, 46.8584824)) * CFrame.Angles(0.69812995195389, 0, -0)
- obj2.TopSurface = Enum.SurfaceType.Smooth
- obj2.BottomSurface = Enum.SurfaceType.Smooth
- obj2.Material = Enum.Material.Neon
- obj2.Size = Vector3.new(0.300000012, 0.200000003, 0.200000003)
- obj2.Anchored = true
- obj2.Friction = 0.30000001192093
- obj2.Shape = Enum.PartType.Block
- obj2.CanCollide = false
- obj2.Parent = obj1
- obj2.Transparency = 0
- -- 3 - Top
- obj3 = Instance.new("Part")
- obj3.CFrame = CFrame.new(Vector3.new(14.25, 3.8499999, 47.1499977)) * CFrame.Angles(-0, 0, -0)
- obj3.TopSurface = Enum.SurfaceType.Smooth
- obj3.BottomSurface = Enum.SurfaceType.Smooth
- obj3.Material = Enum.Material.Neon
- obj3.Size = Vector3.new(0.300000012, 0.300000012, 1.5)
- obj3.Anchored = true
- obj3.Friction = 0.30000001192093
- obj3.Shape = Enum.PartType.Block
- obj3.CanCollide = false
- obj3.Name = "Top"
- obj3.Parent = obj1
- obj3.Transparency = 0
- -----------
- local sound = Instance.new('Sound',obj1)
- sound.SoundId = 'rbxassetid://155561166'
- sound.Volume = 0
- sound.EmitterSize = 10
- sound.MaxDistance = 10
- sound.Looped = true
- sound:Play()
- -----------
- -- 4 - Top
- obj4 = Instance.new("Part")
- obj4.CFrame = CFrame.new(Vector3.new(14.25, 3.8499999, 47.8999977)) * CFrame.Angles(0, 1.5707963705063, 0)
- obj4.TopSurface = Enum.SurfaceType.Smooth
- obj4.BottomSurface = Enum.SurfaceType.Smooth
- obj4.Material = Enum.Material.Neon
- obj4.Size = Vector3.new(0.200000003, 0.299999982, 0.300000012)
- obj4.Anchored = true
- obj4.Friction = 0.30000001192093
- obj4.Shape = Enum.PartType.Cylinder
- obj4.Name = "Top"
- obj4.CanCollide = false
- obj4.Parent = obj1
- obj4.Transparency = 0
- -- 5 - Part
- obj5 = Instance.new("Part")
- obj5.CFrame = CFrame.new(Vector3.new(14.25, 3.35359001, 47.1499939)) * CFrame.Angles(-1.5707978010178, 0, -0)
- obj5.TopSurface = Enum.SurfaceType.Smooth
- obj5.BottomSurface = Enum.SurfaceType.Smooth
- obj5.Material = Enum.Material.Neon
- obj5.Size = Vector3.new(0.300000012, 0.200000003, 0.299999982)
- obj5.Anchored = true
- obj5.Friction = 0.30000001192093
- obj5.Shape = Enum.PartType.Block
- obj5.CanCollide = false
- obj5.Parent = obj1
- obj5.Transparency = 0
- -- 6 - Part
- obj6 = Instance.new("Part")
- obj6.CFrame = CFrame.new(Vector3.new(14.25, 3.5999999, 47.1499977)) * CFrame.Angles(-0, 0, -0)
- obj6.TopSurface = Enum.SurfaceType.Smooth
- obj6.BottomSurface = Enum.SurfaceType.Smooth
- obj6.Material = Enum.Material.Neon
- obj6.Size = Vector3.new(0.300000012, 0.200000003, 1.5)
- obj6.Anchored = true
- obj6.CanCollide = false
- obj6.Friction = 0.30000001192093
- obj6.Shape = Enum.PartType.Block
- obj6.Parent = obj1
- obj6.Transparency = 0
- -- 7 - Part
- obj7 = Instance.new("Part")
- obj7.CFrame = CFrame.new(Vector3.new(14.25, 3.60000014, 47.8999977)) * CFrame.Angles(0, 1.5707963705063, 0)
- obj7.TopSurface = Enum.SurfaceType.Smooth
- obj7.BottomSurface = Enum.SurfaceType.Smooth
- obj7.Material = Enum.Material.Neon
- obj7.Size = Vector3.new(0.200000003, 0.200000003, 0.300000012)
- obj7.Anchored = true
- obj7.CanCollide = false
- obj7.Friction = 0.30000001192093
- obj7.Shape = Enum.PartType.Cylinder
- obj7.Parent = obj1
- obj7.Transparency = 0
- -- 8 - Part
- obj8 = Instance.new("Part")
- obj8.CFrame = CFrame.new(Vector3.new(14.25, 3.15358996, 46.8499985)) * CFrame.Angles(1.1920913323138e-007, 0, -0)
- obj8.TopSurface = Enum.SurfaceType.Smooth
- obj8.BottomSurface = Enum.SurfaceType.Smooth
- obj8.Material = Enum.Material.Neon
- obj8.Size = Vector3.new(0.300000012, 0.200000003, 0.699999988)
- obj8.Anchored = true
- obj8.Friction = 0.30000001192093
- obj8.CanCollide = false
- obj8.Shape = Enum.PartType.Block
- obj8.Parent = obj1
- obj8.Transparency = 0
- -- 9 - Part
- obj9 = Instance.new("Part")
- obj9.CFrame = CFrame.new(Vector3.new(14.25, 3.27858996, 46.5067024)) * CFrame.Angles(-1.0471963882446, 0, -0)
- obj9.TopSurface = Enum.SurfaceType.Smooth
- obj9.BottomSurface = Enum.SurfaceType.Smooth
- obj9.Material = Enum.Material.Neon
- obj9.Size = Vector3.new(0.300000012, 0.300000012, 0.699999988)
- obj9.Anchored = true
- obj9.CanCollide = false
- obj9.Friction = 0.30000001192093
- obj9.Shape = Enum.PartType.Block
- obj9.Parent = obj1
- obj9.Transparency = 0
- local previous = nil
- for i,v in pairs(obj1:GetChildren()) do
- if v:IsA('BasePart') then
- if previous then
- local weld = Instance.new('Weld',v)
- weld.Part0 = v
- weld.Part1 = previous
- weld.C0 = v.CFrame:inverse() * previous.CFrame
- previous.Anchored = false
- end
- previous = v
- end
- end
- previous.Anchored = false
- ---------------------------[[[ FUNCTIONS ]]]---------------------------
- function notify(msg,forever)
- local doit = coroutine.wrap(function()
- for i,v in pairs(plr.PlayerGui:GetChildren()) do
- if v.Name == "Notification" and v:IsA('ScreenGui') then
- v:Destroy()
- end
- end
- print("Original Glock made by ???")
- print("Edited by Knowlton to make it heavy pow and rainbow I guess")
- local gui = Instance.new('ScreenGui',plr.PlayerGui)
- gui.Name = "Notification"
- local frame = Instance.new('Frame',gui)
- frame.Position = UDim2.new(0,0,0,0)
- frame.Size = UDim2.new(1,0,0.2,0)
- frame.BackgroundTransparency = 1
- local txt = Instance.new('TextLabel',frame)
- txt.TextColor3 = Color3.new(255,255,255)
- txt.TextStrokeColor3 = Color3.new(0, 0, 0)
- txt.TextStrokeTransparency = 0
- txt.BackgroundTransparency = 1
- txt.Text = ""
- txt.Size = UDim2.new(1,0,0.3,0)
- txt.Position = UDim2.new(0,0,0.4,0)
- txt.TextScaled = true
- txt.Font = "Code"
- txt.TextXAlignment = "Center"
- local tap = Instance.new("Sound")
- tap.Parent = plr.Backpack
- tap.SoundId = "rbxassetid://147982968"
- tap.TimePosition = 0.1
- local str = msg
- local len = string.len(str)
- for i=1,len do
- txt.Text = string.sub(str,1,i)
- local pitche = math.random(2, 4)
- tap.PlaybackSpeed = pitche
- tap:Play()
- wait(0.05)
- end
- if forever == false then
- wait(1)
- while txt.TextTransparency < 1 do
- txt.TextTransparency = txt.TextTransparency + 0.1
- txt.TextStrokeTransparency = txt.TextStrokeTransparency + 0.1
- wait()
- end
- gui:Destroy()
- end
- end)
- doit()
- end
- function damage(playa,hita)
- local hitz = hita.Name
- local heyy = hitz
- if hitz == "Right Arm" then
- local Limb = playa:FindFirstChild("Right Arm")
- local ters = playa:FindFirstChild('Torso')
- if Limb and ters then
- if ters:FindFirstChild('Right Shoulder') then ters["Right Shoulder"]:Destroy() end
- for i,v in pairs(Limb:GetChildren()) do
- if v:IsA('Weld') or v:IsA('Motor6D') or v:IsA('Glue') then
- v:Destroy()
- end
- end
- Limb.CFrame = ters.CFrame * CFrame.new(1.5, 0, 0)
- local Joint = Instance.new("Glue")
- Joint.Name = "RightShoulder"
- Joint.Part0 = ters
- Joint.Part1 = Limb
- Joint.C0 = CFrame.new(1.5, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
- Joint.C1 = CFrame.new(-0, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
- Joint.Parent = ters
- local B = Instance.new("Part")
- B.TopSurface = 0
- B.BottomSurface = 0
- B.formFactor = "Symmetric"
- B.Size = Vector3.new(1, 1, 1)
- B.Transparency = 1
- B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0)
- B.Parent = playa
- local W = Instance.new("Weld")
- W.Part0 = Limb
- W.Part1 = B
- W.C0 = CFrame.new(0, -0.5, 0)
- W.Parent = Limb
- end
- elseif hitz == "Left Arm" then
- local Limb = playa:FindFirstChild("Left Arm")
- local ters = playa:FindFirstChild('Torso')
- if Limb and ters then
- if ters:FindFirstChild('Left Shoulder') then ters["Left Shoulder"]:Destroy() end
- for i,v in pairs(Limb:GetChildren()) do
- if v:IsA('Weld') or v:IsA('Motor6D') or v:IsA('Glue') then
- v:Destroy()
- end
- end
- Limb.CFrame = ters.CFrame * CFrame.new(-1.5, 0, 0)
- local Joint = Instance.new("Glue")
- Joint.Name = "LeftShoulder"
- Joint.Part0 = ters
- Joint.Part1 = Limb
- Joint.C0 = CFrame.new(-1.5, 0.5, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
- Joint.C1 = CFrame.new(0, 0.5, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
- Joint.Parent = ters
- local B = Instance.new("Part")
- B.TopSurface = 0
- B.BottomSurface = 0
- B.formFactor = "Symmetric"
- B.Size = Vector3.new(1, 1, 1)
- B.Transparency = 1
- B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0)
- B.Parent = playa
- local W = Instance.new("Weld")
- W.Part0 = ters
- W.Part1 = B
- W.C0 = CFrame.new(0, -0.5, 0)
- W.Parent = Limb
- end
- elseif hitz == "Right Leg" then
- local Limb = playa:FindFirstChild("Right Leg")
- local ters = playa:FindFirstChild('Torso')
- if Limb and ters then
- if ters:FindFirstChild('Right Hip') then ters["Right Hip"]:Destroy() end
- for i,v in pairs(Limb:GetChildren()) do
- if v:IsA('Weld') or v:IsA('Motor6D') or v:IsA('Glue') then
- v:Destroy()
- end
- end
- Limb.CFrame = ters.CFrame * CFrame.new(0.5, -2, 0)
- local Joint = Instance.new("Glue")
- Joint.Name = "Right Hip"
- Joint.Part0 = ters
- Joint.Part1 = Limb
- Joint.C0 = CFrame.new(0.5, -1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
- Joint.C1 = CFrame.new(0, 1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
- Joint.Parent = ters
- local B = Instance.new("Part")
- B.TopSurface = 0
- B.BottomSurface = 0
- B.formFactor = "Symmetric"
- B.Size = Vector3.new(1, 1, 1)
- B.Transparency = 1
- B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0)
- B.Parent = playa
- local W = Instance.new("Weld")
- W.Part0 = Limb
- W.Part1 = B
- W.C0 = CFrame.new(0, -0.5, 0)
- W.Parent = Limb
- if playa:FindFirstChildOfClass('Humanoid') then
- local hum = playa:FindFirstChildOfClass('Humanoid')
- local target = playa
- if target:FindFirstChild('HumanoidRootPart') then
- target.HumanoidRootPart:Destroy()
- end
- local found = false
- for i,v in pairs(stunneds) do
- if v == hum then
- found = true
- end
- end
- if found == false then
- table.insert(stunneds,hum)
- end
- end
- end
- elseif hitz == "Left Leg" then
- local Limb = playa:FindFirstChild("Left Leg")
- local ters = playa:FindFirstChild('Torso')
- if Limb and ters then
- if ters:FindFirstChild('Left Hip') then ters["Left Hip"]:Destroy() end
- for i,v in pairs(Limb:GetChildren()) do
- if v:IsA('Weld') or v:IsA('Motor6D') or v:IsA('Glue') then
- v:Destroy()
- end
- end
- Limb.CFrame = ters.CFrame * CFrame.new(0.5, -2, 0)
- Limb.CFrame = ters.CFrame * CFrame.new(-0.5, -2, 0)
- local Joint = Instance.new("Glue")
- Joint.Name = "LeftHip"
- Joint.Part0 = ters
- Joint.Part1 = Limb
- Joint.C0 = CFrame.new(-0.5, -1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
- Joint.C1 = CFrame.new(-0, 1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
- Joint.Parent = ters
- local B = Instance.new("Part")
- B.TopSurface = 0
- B.BottomSurface = 0
- B.formFactor = "Symmetric"
- B.Size = Vector3.new(1, 1, 1)
- B.Transparency = 1
- B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0)
- B.Parent = playa
- local W = Instance.new("Weld")
- W.Part0 = Limb
- W.Part1 = B
- W.C0 = CFrame.new(0, -0.5, 0)
- W.Parent = Limb
- Limb.CanCollide = false
- if playa:FindFirstChildOfClass('Humanoid') then
- local hum = playa:FindFirstChildOfClass('Humanoid')
- local target = playa
- if target:FindFirstChild('HumanoidRootPart') then
- target.HumanoidRootPart:Destroy()
- end
- local found = false
- for i,v in pairs(stunneds) do
- if v == hum then
- found = true
- end
- end
- if found == false then
- table.insert(stunneds,hum)
- end
- end
- end
- else
- local playa2 = playa
- playa.Archivable = true
- local playa = playa:Clone()
- playa.Archivable = false
- playa2:Destroy()
- playa.Parent = workspace
- local Gibs = game.Workspace
- print(playa)
- local Torso = playa.Torso
- local Head = playa:FindFirstChild("Head")
- local function Scan(ch)
- local e
- for e = 1,#ch do
- Scan(ch[e]:GetChildren())
- if ch[e].ClassName == "Weld" or ch[e].ClassName == "Motor6D" then
- ch[e]:remove()
- end
- end
- end
- Scan(playa:GetChildren())
- if playa:FindFirstChild('HumanoidRootPart') then
- playa:FindFirstChild('HumanoidRootPart'):Destroy()
- end
- local hum2 = playa:FindFirstChildOfClass("Humanoid")
- if hum2 ~= nil then
- hum2.Name = "Humanoid2"
- hum2.PlatformStand = true
- hum2.Health = 0
- end
- local ch = playa:GetChildren()
- local i
- for i = 1,#ch do
- if ch[i].Name == "THandle1" or ch[i].Name == "THandle2" then
- ch[i]:remove()
- end
- end
- if Head then
- local Neck = Instance.new("Weld")
- Neck.Name = "Neck"
- Neck.Part0 = Torso
- Neck.Part1 = Head
- Neck.C0 = CFrame.new(0, 1.5, 0)
- Neck.C1 = CFrame.new()
- Neck.Parent = Torso
- end
- local Limb = playa:FindFirstChild("Right Arm")
- if Limb then
- Limb.CFrame = Torso.CFrame * CFrame.new(1.5, 0, 0)
- local Joint = Instance.new("Glue")
- Joint.Name = "RightShoulder"
- Joint.Part0 = Torso
- Joint.Part1 = Limb
- Joint.C0 = CFrame.new(1.5, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
- Joint.C1 = CFrame.new(-0, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
- Joint.Parent = Torso
- local B = Instance.new("Part")
- B.TopSurface = 0
- B.BottomSurface = 0
- B.formFactor = "Symmetric"
- B.Size = Vector3.new(1, 1, 1)
- B.Transparency = 1
- B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0)
- B.Parent = playa
- local W = Instance.new("Weld")
- W.Part0 = Limb
- W.Part1 = B
- W.C0 = CFrame.new(0, -0.5, 0)
- W.Parent = Limb
- end
- local Limb = playa:FindFirstChild("Left Arm")
- if Limb then
- Limb.CFrame = Torso.CFrame * CFrame.new(-1.5, 0, 0)
- local Joint = Instance.new("Glue")
- Joint.Name = "LeftShoulder"
- Joint.Part0 = Torso
- Joint.Part1 = Limb
- Joint.C0 = CFrame.new(-1.5, 0.5, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
- Joint.C1 = CFrame.new(0, 0.5, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
- Joint.Parent = Torso
- local B = Instance.new("Part")
- B.TopSurface = 0
- B.BottomSurface = 0
- B.formFactor = "Symmetric"
- B.Size = Vector3.new(1, 1, 1)
- B.Transparency = 1
- B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0)
- B.Parent = playa
- local W = Instance.new("Weld")
- W.Part0 = Limb
- W.Part1 = B
- W.C0 = CFrame.new(0, -0.5, 0)
- W.Parent = Limb
- end
- local Limb = playa:FindFirstChild("Right Leg")
- if Limb then
- Limb.CFrame = Torso.CFrame * CFrame.new(0.5, -2, 0)
- local Joint = Instance.new("Glue")
- Joint.Name = "RightHip"
- Joint.Part0 = Torso
- Joint.Part1 = Limb
- Joint.C0 = CFrame.new(0.5, -1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
- Joint.C1 = CFrame.new(0, 1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
- Joint.Parent = Torso
- local B = Instance.new("Part")
- B.TopSurface = 0
- B.BottomSurface = 0
- B.formFactor = "Symmetric"
- B.Size = Vector3.new(1, 1, 1)
- B.Transparency = 1
- B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0)
- B.Parent = playa
- local W = Instance.new("Weld")
- W.Part0 = Limb
- W.Part1 = B
- W.C0 = CFrame.new(0, -0.5, 0)
- W.Parent = Limb
- end
- local Limb = playa:FindFirstChild("Left Leg")
- if Limb then
- Limb.CFrame = Torso.CFrame * CFrame.new(-0.5, -2, 0)
- local Joint = Instance.new("Glue")
- Joint.Name = "LeftHip"
- Joint.Part0 = Torso
- Joint.Part1 = Limb
- Joint.C0 = CFrame.new(-0.5, -1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
- Joint.C1 = CFrame.new(-0, 1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
- Joint.Parent = Torso
- local B = Instance.new("Part")
- B.TopSurface = 0
- B.BottomSurface = 0
- B.formFactor = "Symmetric"
- B.Size = Vector3.new(1, 1, 1)
- B.Transparency = 1
- B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0)
- B.Parent = playa
- local W = Instance.new("Weld")
- W.Part0 = Limb
- W.Part1 = B
- W.C0 = CFrame.new(0, -0.5, 0)
- W.Parent = Limb
- end
- --[
- local Bar = Instance.new("Part")
- Bar.TopSurface = 0
- Bar.BottomSurface = 0
- Bar.formFactor = "Symmetric"
- Bar.Size = Vector3.new(1, 1, 1)
- Bar.Transparency = 1
- Bar.CFrame = Torso.CFrame * CFrame.new(0, 0.5, 0)
- Bar.Parent = playa
- local Weld = Instance.new("Weld")
- Weld.Part0 = Torso
- Weld.Part1 = Bar
- Weld.C0 = CFrame.new(0, 0.5, 0)
- Weld.Parent = Torso
- --]]
- playa.Parent = Gibs
- game.Debris:AddItem(playa, 12)
- end
- end
- function calculate()
- if leftarm and chr:FindFirstChild('Head') and chr:FindFirstChild('Torso') and chr.Torso:FindFirstChild("Left Shoulder") and chr:FindFirstChild('Left Arm') then
- local Head = plr.Character.Head
- local RightShoulder = plr.Character.Torso["Left Shoulder"]
- local RightArm = plr.Character["Left Arm"]
- local MousePosition = mou.Hit.p
- local ToMouse = (MousePosition - Head.Position).unit
- local Angle = math.acos(ToMouse:Dot(Vector3.new(0, 1, 0)))
- local FromRightArmPos = (Head.Position + Head.CFrame:vectorToWorldSpace(Vector3.new(((-Head.Size.X / 2) + (-RightArm.Size.X / 2)), ((-Head.Size.Y / 2) - (-RightArm.Size.Z / 2)), 0)))
- local ToMouseRightArm = ((MousePosition - FromRightArmPos) * Vector3.new(-1 ,0, -1)).unit
- local Look = (Head.CFrame.lookVector * Vector3.new(-1, 0, -1)).unit
- local LateralAngle = math.acos(ToMouseRightArm:Dot(Look))
- if tostring(LateralAngle) == "-1.#IND" then
- LateralAngle = 0
- end
- local Cross = Head.CFrame.lookVector:Cross(ToMouseRightArm)
- --[[
- if LateralAngle > (math.pi / 2) then
- LateralAngle = (math.pi / 2)
- if chr:FindFirstChild('Torso') then
- local Torso = chr.Torso
- local Point = Torso.CFrame:vectorToObjectSpace(mou.Hit.p-Torso.CFrame.p)
- if Point.Z > 0 then
- if Point.X > 0 then
- Torso.CFrame = CFrame.new(Torso.Position,Vector3.new(mou.Hit.X,Torso.Position.Y,mou.Hit.Z))*CFrame.Angles(0,math.rad(90),0)
- elseif Point.X < 0 then
- Torso.CFrame = CFrame.new(Torso.Position,Vector3.new(mou.Hit.X,Torso.Position.Y,mou.Hit.Z))*CFrame.Angles(0,math.rad(-90),0)
- end
- end
- end
- end
- ]]--
- print(LateralAngle)
- warn(math.pi / 2)
- if Cross.Y < 0 then
- LateralAngle = -LateralAngle
- end
- return(CFrame.new(RightShoulder.C0.p) * CFrame.Angles(((math.pi / 2) - Angle), ((math.pi / 2) + LateralAngle), math.pi/2))
- elseif chr:FindFirstChild('Head') and chr:FindFirstChild('Torso') and chr.Torso:FindFirstChild("Right Shoulder") and chr:FindFirstChild('Right Arm') then
- local Head = plr.Character.Head
- local RightShoulder = plr.Character.Torso["Right Shoulder"]
- local RightArm = plr.Character["Right Arm"]
- local MousePosition = mou.Hit.p
- local ToMouse = (MousePosition - Head.Position).unit
- local Angle = math.acos(ToMouse:Dot(Vector3.new(0, 1, 0)))
- local FromRightArmPos = (Head.Position + Head.CFrame:vectorToWorldSpace(Vector3.new(((Head.Size.X / 2) + (RightArm.Size.X / 2)), ((Head.Size.Y / 2) - (RightArm.Size.Z / 2)), 0)))
- local ToMouseRightArm = ((MousePosition - FromRightArmPos) * Vector3.new(1 ,0, 1)).unit
- local Look = (Head.CFrame.lookVector * Vector3.new(1, 0, 1)).unit
- local LateralAngle = math.acos(ToMouseRightArm:Dot(Look))
- if tostring(LateralAngle) == "-1.#IND" then
- LateralAngle = 0
- end
- local Cross = Head.CFrame.lookVector:Cross(ToMouseRightArm)
- if LateralAngle > (math.pi / 2) then
- LateralAngle = (math.pi / 2)
- if chr:FindFirstChild('Torso') then
- local Torso = chr.Torso
- local Point = Torso.CFrame:vectorToObjectSpace(mou.Hit.p-Torso.CFrame.p)
- if Point.Z > 0 then
- if Point.X > 0 then
- Torso.CFrame = CFrame.new(Torso.Position,Vector3.new(mou.Hit.X,Torso.Position.Y,mou.Hit.Z))*CFrame.Angles(0,math.rad(90),0)
- elseif Point.X < 0 then
- Torso.CFrame = CFrame.new(Torso.Position,Vector3.new(mou.Hit.X,Torso.Position.Y,mou.Hit.Z))*CFrame.Angles(0,math.rad(-90),0)
- end
- end
- end
- end
- if Cross.Y < 0 then
- LateralAngle = -LateralAngle
- end
- return(CFrame.new(RightShoulder.C0.p) * CFrame.Angles(((math.pi / 2) - Angle), ((math.pi / 2) + LateralAngle), math.pi/2))
- end
- end
- function fire()
- if mou.Target then
- local humanoid = mou.Target.Parent:FindFirstChildOfClass("Humanoid")
- if not humanoid then
- humanoid = mou.Target.Parent.Parent:FindFirstChildOfClass("Humanoid")
- end
- if humanoid then
- local coru = coroutine.wrap(function()
- damage(humanoid.Parent,mou.Target)
- end)
- coru()
- end
- end
- local beam = Instance.new("Part", workspace)
- beam.BrickColor = BrickColor.random()
- beam.FormFactor = "Custom"
- beam.Material = "Neon"
- beam.Transparency = 0
- beam.Anchored = true
- beam.Locked = true
- beam.CanCollide = false
- local distance = (obj4.CFrame.p - mou.Hit.p).magnitude
- beam.Size = Vector3.new(0.2, 0.2, distance)
- beam.CFrame = CFrame.new(obj4.CFrame.p, mou.Hit.p) * CFrame.new(0, 0, -distance / 2)
- game:GetService("Debris"):AddItem(beam, 0.05)
- local sound = Instance.new('Sound',obj4)
- sound.SoundId = 'rbxassetid://130791043'
- sound.Volume = 0.1
- sound.EmitterSize = 40
- sound.MaxDistance = 450
- sound:Play()
- game:GetService("Debris"):AddItem(beam, sound.TimeLength)
- end
- ---------------------------[[[ SCRIPT ]]]---------------------------
- CFuncs = {
- ["Part"] = {
- Create = function(Parent, Material, Reflectance, Transparency, BColor, Name, Size )
- local Part = Create("Part"){
- Parent = Parent,
- Reflectance = Reflectance,
- Transparency = Transparency,
- CanCollide = false,
- Locked = true,
- BrickColor = BrickColor.random(),
- Name = Name,
- Size = Size,
- Material = Material,
- }
- RemoveOutlines(Part)
- return Part
- end;
- };
- ["Mesh"] = {
- Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
- local Msh = Create(Mesh){
- Parent = Part,
- Offset = OffSet,
- Scale = Scale,
- }
- if Mesh == "SpecialMesh" then
- Msh.MeshType = MeshType
- Msh.MeshId = MeshId
- end
- return Msh
- end;
- };
- ["Mesh"] = {
- Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
- local Msh = Create(Mesh){
- Parent = Part,
- Offset = OffSet,
- Scale = Scale,
- }
- if Mesh == "SpecialMesh" then
- Msh.MeshType = MeshType
- Msh.MeshId = MeshId
- end
- return Msh
- end;
- };
- ["Weld"] = {
- Create = function(Parent, Part0, Part1, C0, C1)
- local Weld = Create("Weld"){
- Parent = Parent,
- Part0 = Part0,
- Part1 = Part1,
- C0 = C0,
- C1 = C1,
- }
- return Weld
- end;
- };
- ["Sound"] = {
- Create = function(id, par, vol, pit)
- coroutine.resume(coroutine.create(function()
- local S = Create("Sound"){
- Volume = vol,
- Pitch = pit or 1,
- SoundId = id,
- Parent = par or workspace,
- }
- wait()
- S:play()
- game:GetService("Debris"):AddItem(S, 6)
- end))
- end;
- };
- ["ParticleEmitter"] = {
- Create = function(Parent, Color1, Color2, LightEmission, Size, Texture, Transparency, ZOffset, Accel, Drag, LockedToPart, VelocityInheritance, EmissionDirection, Enabled, LifeTime, Rate, Rotation, RotSpeed, Speed, VelocitySpread)
- local fp = Create("ParticleEmitter"){
- Parent = Parent,
- Color = ColorSequence.new(Color1, Color2),
- LightEmission = LightEmission,
- Size = Size,
- Texture = Texture,
- Transparency = Transparency,
- ZOffset = ZOffset,
- Acceleration = Accel,
- Drag = Drag,
- LockedToPart = LockedToPart,
- VelocityInheritance = VelocityInheritance,
- EmissionDirection = EmissionDirection,
- Enabled = Enabled,
- Lifetime = LifeTime,
- Rate = Rate,
- Rotation = Rotation,
- RotSpeed = RotSpeed,
- Speed = Speed,
- VelocitySpread = VelocitySpread,
- }
- return fp
- end;
- };
- CreateTemplate = {
- };
- }
- sound = Instance.new("Sound", Character)
- sound.SoundId = "rbxassetid://362573120"
- sound.Volume = 0
- sound.Pitch = 0
- sound.EmitterSize = 100
- sound:Play()
- sound.Looped = true
- if chr:FindFirstChild('Left Arm') == nil or chr:FindFirstChild('Torso') == nil or chr.Torso:FindFirstChild('Left Shoulder') == nil then
- leftarm = false
- end
- local weldas = Instance.new('Weld',obj2)
- if leftarm and chr:FindFirstChild('Left Arm') then
- weldas.Part0 = obj2
- weldas.Part1 = chr["Left Arm"]
- weldas.C0 = CFrame.new(0,-0.85,-0.30)*CFrame.Angles(math.rad(50),math.rad(0),math.rad(180))
- elseif chr:FindFirstChild('Right Arm') then
- weldas.Part0 = obj2
- weldas.Part1 = chr["Right Arm"]
- weldas.C0 = CFrame.new(0,-0.85,-0.30)*CFrame.Angles(math.rad(50),math.rad(0),math.rad(180))
- end
- if leftarm and chr:FindFirstChild('Left Arm') and chr:FindFirstChild('Torso') and chr.Torso:FindFirstChild('Left Shoulder') then
- chr:FindFirstChild('Left Arm').AncestryChanged:connect(function(me,par)
- if par ~= chr and chr:FindFirstChild('Right Arm') then
- if obj2 and obj2:FindFirstChildOfClass('Weld') then
- obj2:FindFirstChildOfClass('Weld').Part1 = chr["Right Arm"]
- end
- leftarm = false
- end
- end)
- chr.Torso:FindFirstChild('Left Shoulder').AncestryChanged:connect(function(me,par)
- if par ~= chr:FindFirstChild('Torso') and chr:FindFirstChild('Right Arm') then
- if obj2 and obj2:FindFirstChildOfClass('Weld') then
- obj2:FindFirstChildOfClass('Weld').Part1 = chr["Right Arm"]
- end
- end
- leftarm = false
- end)
- elseif leftarm then
- if obj2 and obj2:FindFirstChildOfClass('Weld') and chr:FindFirstChild('Right Arm') then
- obj2:FindFirstChildOfClass('Weld').Part1 = chr["Right Arm"]
- end
- end
- mou.KeyDown:connect(function(key)
- if key == string.lower(curkey) then
- active = not active
- end
- end)
- plr.Chatted:connect(function(msg)
- if string.lower(string.sub(msg,1,5)) == "!bind" then
- curkey = string.lower(string.sub(msg,7,7))
- notify([[Changed key for equip/unequip to "]]..curkey..[[".]],false)
- end
- end)
- game:GetService('RunService').Stepped:connect(function()
- if active and chr:FindFirstChild('Torso') then
- if leftarm then
- chr.Torso["Left Shoulder"].C0 = calculate()
- else
- chr.Torso["Right Shoulder"].C0 = calculate()
- end
- weldas.Part1 = chr["Right Arm"]
- weldas.C0 = CFrame.new(0,-0.85,-0.30)*CFrame.Angles(math.rad(50),math.rad(0),math.rad(180))
- elseif chr:FindFirstChild('Torso') and (chr.Torso:FindFirstChild('Left Shoulder') or chr.Torso:FindFirstChild('Right Shoulder')) then
- if leftarm then
- chr.Torso["Left Shoulder"].C0 = CFrame.new(-1,0.5,0)*CFrame.Angles(0,-math.pi/2,0)
- else
- chr.Torso["Right Shoulder"].C0 = CFrame.new(1,0.5,0)*CFrame.Angles(0,math.pi/2,0)
- end
- weldas.Part1 = chr.Torso
- weldas.C0 = CFrame.new(-1,0,-1)*CFrame.Angles(math.rad(-90),0,0)
- end
- for i,v in pairs(stunneds) do
- v.PlatformStand = true
- end
- end)
- mou.Button1Down:connect(function()
- if active then
- fire()
- end
- end)
- function guns()
- while true do
- obj2.BrickColor = BrickColor.new (math.random(), math.random(), math.random(), math.random(), math.random(), math.random(), math.random(), math.random(), math.random(), math.random(), math.random())
- obj3.BrickColor = BrickColor.new (math.random(), math.random(), math.random(), math.random(), math.random(), math.random(), math.random(), math.random(), math.random(), math.random(), math.random())
- obj4.BrickColor = BrickColor.new (math.random(), math.random(), math.random(), math.random(), math.random(), math.random(), math.random(), math.random(), math.random(), math.random(), math.random())
- obj5.BrickColor = BrickColor.new (math.random(), math.random(), math.random(), math.random(), math.random(), math.random(), math.random(), math.random(), math.random(), math.random(), math.random())
- obj6.BrickColor = BrickColor.new (math.random(), math.random(), math.random(), math.random(), math.random(), math.random(), math.random(), math.random(), math.random(), math.random(), math.random())
- obj7.BrickColor = BrickColor.new (math.random(), math.random(), math.random(), math.random(), math.random(), math.random(), math.random(), math.random(), math.random(), math.random(), math.random())
- obj8.BrickColor = BrickColor.new (math.random(), math.random(), math.random(), math.random(), math.random(), math.random(), math.random(), math.random(), math.random(), math.random(), math.random())
- obj9.BrickColor = BrickColor.new (math.random(), math.random(), math.random(), math.random(), math.random(), math.random(), math.random(), math.random(), math.random(), math.random(), math.random())
- wait(0.1)
- end
- end
- script = Instance.new("Fire")
- script.Parent = game.Players.LocalPlayer.Character.Torso
- function fires()
- while true do
- wait(0.5) --If you want colour/color change to slow down, at a number in these brackets.
- script.Color = Color3.new(math.random(), math.random(), math.random())
- script.SecondaryColor = Color3.new(math.random(), math.random(), math.random())
- script.Heat = math.random(8,8) --Remove these two lines if you don't want the fire to change size.
- script.Size = math.random(7,7)
- end
- end
- spawn(guns)
- spawn(fires)
- local h = Instance.new("Hint")
- h.Parent = Workspace
- h.Text = "Ultimate Disco Man Has Loaded Have Fun!!! E to Activate/Deactivate the gun Enjoy!"
- wait(8)
- h:Remove()
- print("DiscoMan Has Successfully Loaded!!!")
- end)
- IDDiscoMan.Name = "IDDiscoMan"
- IDDiscoMan.Parent = FunMenuFrame
- IDDiscoMan.BackgroundColor3 = Color3.new(0.145098, 0.2, 0.678431)
- IDDiscoMan.BackgroundTransparency = 0.15999999642372
- IDDiscoMan.BorderColor3 = Color3.new(1, 1, 1)
- IDDiscoMan.BorderSizePixel = 2
- IDDiscoMan.Position = UDim2.new(0.422413796, 0, 0.1875, 0)
- IDDiscoMan.Size = UDim2.new(0, 77, 0, 20)
- IDDiscoMan.Font = Enum.Font.SciFi
- IDDiscoMan.Text = "ID DiscoMan"
- IDDiscoMan.TextColor3 = Color3.new(1, 1, 1)
- IDDiscoMan.TextSize = 15
- MadeBy2Txt.Name = "MadeBy2Txt"
- MadeBy2Txt.Parent = FunMenuFrame
- MadeBy2Txt.BackgroundColor3 = Color3.new(1, 1, 1)
- MadeBy2Txt.BackgroundTransparency = 1
- MadeBy2Txt.Position = UDim2.new(0.794540286, 0, 0.292145729, 0)
- MadeBy2Txt.Size = UDim2.new(0, 54, 0, 14)
- MadeBy2Txt.Font = Enum.Font.SciFi
- MadeBy2Txt.Text = "Pointz#6115"
- MadeBy2Txt.TextColor3 = Color3.new(1, 1, 1)
- MadeBy2Txt.TextSize = 18
- MadeByTxt.Name = "MadeByTxt"
- MadeByTxt.Parent = FunMenuFrame
- MadeByTxt.BackgroundColor3 = Color3.new(1, 1, 1)
- MadeByTxt.BackgroundTransparency = 1
- MadeByTxt.Position = UDim2.new(0.625, 0, 0.293651342, 0)
- MadeByTxt.Size = UDim2.new(0, 54, 0, 14)
- MadeByTxt.Font = Enum.Font.SciFi
- MadeByTxt.Text = "By"
- MadeByTxt.TextColor3 = Color3.new(1, 1, 1)
- MadeByTxt.TextSize = 18
- TextLabel.Parent = MainFrame
- TextLabel.BackgroundColor3 = Color3.new(1, 1, 1)
- TextLabel.BackgroundTransparency = 1
- TextLabel.Position = UDim2.new(0.568965495, 0, 0.479999989, 0)
- TextLabel.Size = UDim2.new(0, 34, 0, 13)
- TextLabel.Font = Enum.Font.SciFi
- TextLabel.Text = "Pitch"
- TextLabel.TextColor3 = Color3.new(1, 1, 1)
- TextLabel.TextSize = 14
- TextLabel_2.Parent = MainFrame
- TextLabel_2.BackgroundColor3 = Color3.new(1, 1, 1)
- TextLabel_2.BackgroundTransparency = 1
- TextLabel_2.Position = UDim2.new(0.821839035, 0, 0.479999989, 0)
- TextLabel_2.Size = UDim2.new(0, 34, 0, 13)
- TextLabel_2.Font = Enum.Font.SciFi
- TextLabel_2.Text = "Volume"
- TextLabel_2.TextColor3 = Color3.new(1, 1, 1)
- TextLabel_2.TextSize = 14
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement