Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- MusicGui:Clone().Parent = Player:WaitForChild("PlayerGui")
- print("Player is " .. Player.Name)
- end
- -- if Torso ~= nil then
- -- local Character = Torso.Parent
- -- if Character ~= nil then
- local Script = MusicGui:findFirstChild("Script", true)
- if Script then
- Script.Disabled = false
- else
- print("lolnope bitch")
- -- end
- end
- end
- end
- function onChildRemoved(Part)
- if Part.className == "Weld" then
- local Torso = Part.Part1
- if Torso ~= nil then
- local Character = Torso.Parent
- if Character ~= nil then
- local Gui = Players:GetPlayerFromCharacter(Character):WaitForChild("PlayerGui"):findFirstChild("MusicGUI")
- if Gui then
- Gui:Destroy()
- end
- end
- end
- end
- end
- Seat.ChildRemoved:connect(onChildRemoved)
- Seat.ChildAdded:connect(onChildAdded)
- while wait() do
- SoundObject.OnServerEvent:connect(function(Player, soundId)
- -- if script.Parent.Sound.IsPlaying == false then
- if MusicGui.ImageButton.Visible == true then
- Sound.SoundId = "http://www.roblox.com/asset/?id=".. soundId
- print("MOTHERFUCKER PLAY ALREADY")
- wait()
- Sound:Play()
- MusicGui.ImageButton.Visible = false
- --if Sound.IsPlaying == true then
- print("imsupposedtobeplayingyoumotherfuckingfaggotplayalready")
- --end
- wait(122) --goddamn roblox fix isPlaying
- MusicGui.ImageButton.Visible = true
- end
- end)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement