Advertisement
Guest User

Untitled

a guest
Jul 28th, 2014
177
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.39 KB | None | 0 0
  1.  
  2.     MusicGui:Clone().Parent = Player:WaitForChild("PlayerGui")
  3.                 print("Player is " .. Player.Name)
  4.             end
  5. --      if Torso ~= nil then
  6. --          local Character = Torso.Parent
  7. --          if Character ~= nil then
  8.            
  9.  
  10.                 local Script = MusicGui:findFirstChild("Script", true)
  11.                 if Script then
  12.                     Script.Disabled = false
  13.                 else
  14.                     print("lolnope bitch")
  15. --          end
  16.         end
  17.     end
  18. end
  19.    
  20. function onChildRemoved(Part)
  21.     if Part.className == "Weld" then
  22.         local Torso = Part.Part1
  23.         if Torso ~= nil then
  24.             local Character = Torso.Parent
  25.             if Character ~= nil then
  26.                 local Gui = Players:GetPlayerFromCharacter(Character):WaitForChild("PlayerGui"):findFirstChild("MusicGUI")
  27.                 if Gui then
  28.                     Gui:Destroy()
  29.                 end
  30.             end
  31.         end
  32.     end
  33. end
  34.  
  35. Seat.ChildRemoved:connect(onChildRemoved)
  36. Seat.ChildAdded:connect(onChildAdded)
  37.  
  38.  
  39. while wait() do
  40. SoundObject.OnServerEvent:connect(function(Player, soundId)
  41. --  if script.Parent.Sound.IsPlaying == false then
  42.         if MusicGui.ImageButton.Visible == true then
  43.             Sound.SoundId = "http://www.roblox.com/asset/?id=".. soundId
  44.             print("MOTHERFUCKER PLAY ALREADY")
  45.             wait()
  46.         Sound:Play()
  47.             MusicGui.ImageButton.Visible = false
  48.             --if Sound.IsPlaying == true then
  49.                 print("imsupposedtobeplayingyoumotherfuckingfaggotplayalready")
  50.             --end
  51.            
  52.             wait(122) --goddamn roblox fix isPlaying
  53.             MusicGui.ImageButton.Visible = true
  54.    
  55.         end
  56.  
  57. end)
  58. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement