Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local char = game.Players.LocalPlayer.Character
- local s = Instance.new("ScreenGui", game.Workspace)
- local f = Instance.new("Frame", s)
- local mselect = Instance.new("TextButton", f)
- local mbox = Instance.new("TextBox", f)
- local toggle = false
- local Player = game.Players.LocalPlayer
- local Character = Player.Character
- f.Size = UDim2.new(0,300,0,250)
- f.BorderSizePixel = 0
- f.BackgroundColor3 = Color3.new(0.301961, 0.301961, 0.301961)
- f.Position = UDim2.new(0.5,-150,0.5,-125)
- f.Active = true
- f.Draggable = true
- mbox.Size = UDim2.new(0,250,0,50)
- mbox.Position = UDim2.new(0,25,0.1,0)
- mbox.BorderSizePixel = 0
- mbox.Text = "Music ID Here:"
- mbox.Font = "SourceSansBold"
- mbox.TextColor3 = Color3.new(255, 255,255)
- mbox.BackgroundColor3 = Color3.new(1, 0.666667, 0)
- mbox.FontSize = "Size18"
- mbox.ZIndex = 10
- mselect.Size = UDim2.new(0,250,0,50)
- mselect.Position = UDim2.new(0,25,0.6,0)
- mselect.BorderSizePixel = 0
- mselect.Text = "Play Music"
- mselect.Font = "SourceSansBold"
- mselect.TextColor3 = Color3.new(255,255,255)
- mselect.BackgroundColor3 = Color3.new(0.333333, 0.666667, 1)
- mselect.FontSize = "Size18"
- mselect.ZIndex = 10
- mselect.MouseButton1Click:connect(function()
- game.Players.LocalPlayer.Character.Humanoid.MaxHealth = math.huge -- this is god
- if toggle == false then
- loadPart()
- toggle = true
- elseif toggle == true then
- loadPart()
- toggle = false
- end
- end)
- function loadPart()
- for i,v in pairs(game.Players.LocalPlayer.Character:GetChildren()) do
- if v.Name == "MusicItem" and v.ClassName == "Part" then
- v:Remove()
- end
- end
- local radio = Instance.new("Part", char)
- radio.Name = "Radio"
- local mesh = Instance.new("FileMesh", radio)
- mesh.MeshId = "http://www.roblox.com/asset/?id=212302951"
- mesh.TextureId = "http://www.roblox.com/asset/?id=212303049"
- mesh.Scale = Vector3.new(4, 4, 4)
- mesh.VertexColor = Vector3.new(1, 1, 1)
- mesh.Offset = Vector3.new(0, 0, 0)
- local function weldBetween(a, b)
- local weld = Instance.new("ManualWeld")
- weld.Part0 = a
- weld.Part1 = b
- weld.C0 = CFrame.new()
- weld.C1 = b.CFrame:inverse() * a.CFrame
- weld.Parent = a
- return weld;
- end
- local hand = radio:clone()
- hand.Parent=char
- hand.CFrame=char:WaitForChild("Torso").CFrame*CFrame.new(Vector3.new(0,0,0.9))*CFrame.Angles(0,math.rad(180),math.rad(45))
- weldBetween(char:WaitForChild("Torso"), hand)
- hand.CanCollide=true
- hand.Anchored=false
- local Sound = Instance.new("Sound", Part)
- Sound.SoundId = "https://www.roblox.com/asset/?id="..mbox.Text
- Sound.EmitterSize = math.huge
- Sound.MaxDistance = math.huge
- Sound.Looped = true
- Sound.Pitch = 1
- Sound.Name = "Sound"
- Sound.Volume = 100
- Sound:Play()
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement