Advertisement
RgRacks

Roblox Boombox Script FE (Works)

Apr 12th, 2020
27,838
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. mesh.MeshId = "http://www.roblox.com/asset/?id=212302951"
  2. mesh.TextureId = "http://www.roblox.com/asset/?id=212303049"
  3. mesh.Scale = Vector3.new(4, 4, 4)
  4. mesh.VertexColor = Vector3.new(1, 1, 1)
  5. mesh.Offset = Vector3.new(0, 0, 0)
  6.  
  7.  
  8. local function weldBetween(a, b)
  9.    local weld = Instance.new("ManualWeld")
  10.    weld.Part0 = a
  11.    weld.Part1 = b
  12.    weld.C0 = CFrame.new()
  13.    weld.C1 = b.CFrame:inverse() * a.CFrame
  14.    weld.Parent = a
  15.    return weld;
  16. end
  17. local hand = radio:clone()
  18. hand.Parent=char
  19. hand.CFrame=char:WaitForChild("Torso").CFrame*CFrame.new(Vector3.new(0,0,0.9))*CFrame.Angles(0,math.rad(180),math.rad(45))
  20. weldBetween(char:WaitForChild("Torso"), hand)
  21. hand.CanCollide=true
  22. hand.Anchored=false
  23.  
  24. sound = Instance.new("Sound", hand) -- we will now call the radio "hand"
  25. sound.Volume = 0.5
  26. sound.Pitch = 1
  27.  
  28. openguibtn.Visible = true
  29. char:FindFirstChild("Radio"):Destroy()
  30. end)
  31.  
  32.  
  33. closebtn.MouseButton1Click:connect(function()
  34. openbtn.Visible = true
  35. closebtn.Visible = false
  36. openguibtn.Visible = false
  37. playmusicint.Visible = false
  38. isGuiOpen = false
  39. char:WaitForChild("Radio"):Destroy()
  40. end)
  41.  
  42. playmusicbtn.MouseButton1Click:connect(function()
  43. sound:stop()
  44. wait(0.2)
  45. sound.SoundId = "rbxassetid://"..musicidbox.Text
  46. sound:play()
  47. end)
  48.  
  49. stopmusicbtn.MouseButton1Click:connect(function()
  50. sound:stop()
  51. end)
  52.  
  53.  
  54. openguibtn.MouseButton1Click:connect(function()
  55. if isGuiOpen == false then isGuiOpen = true
  56. playmusicint.Visible = true else isGuiOpen = false playmusicint.Visible = false
  57. end
  58. end)
Advertisement
RAW Paste Data Copied
Advertisement