TheUnknownDiscord

change da world

Oct 5th, 2021 (edited)
58
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. local goodbye = Instance.new("Sound", owner.Character.Head)
  2. goodbye.SoundId = "rbxassetid://4407929531"
  3. local windows = Instance.new("Sound", owner.Character.Head)
  4. windows.SoundId = "rbxassetid://5994223709"
  5. goodbye:Play()
  6. task.wait()
  7. goodbye.Ended:Wait()
  8. windows:Play()
  9. task.wait()
  10. for i,v in pairs(owner.Character:GetDescendants()) do
  11. if v:IsA("BasePart") or v:IsA("Decal") then
  12. local tweenService = game:GetService("TweenService")
  13.  
  14. local timeToFade = windows.TimeLength * 0.5
  15. local object = v
  16. local tweenInfo = TweenInfo.new(timeToFade)
  17. local goal = {}
  18. goal.Transparency = 1
  19.  
  20. local tween = tweenService:Create(object, tweenInfo, goal)
  21. tween:Play()
  22. end
  23. end
  24. task.wait()
  25. windows.Ended:Wait()
  26. for i,v in pairs(owner.Character:GetDescendants()) do
  27. if v:IsA("BasePart") or v:IsA("Decal") then
  28. v:Destroy()
  29. end
  30. end
RAW Paste Data