Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local goodbye = Instance.new("Sound", owner.Character.Head)
- goodbye.SoundId = "rbxassetid://4407929531"
- local windows = Instance.new("Sound", owner.Character.Head)
- windows.SoundId = "rbxassetid://5994223709"
- goodbye:Play()
- task.wait()
- goodbye.Ended:Wait()
- windows:Play()
- task.wait()
- for i,v in pairs(owner.Character:GetDescendants()) do
- if v:IsA("BasePart") or v:IsA("Decal") then
- local tweenService = game:GetService("TweenService")
- local timeToFade = windows.TimeLength * 0.5
- local object = v
- local tweenInfo = TweenInfo.new(timeToFade)
- local goal = {}
- goal.Transparency = 1
- local tween = tweenService:Create(object, tweenInfo, goal)
- tween:Play()
- end
- end
- task.wait()
- windows.Ended:Wait()
- for i,v in pairs(owner.Character:GetDescendants()) do
- if v:IsA("BasePart") or v:IsA("Decal") then
- v:Destroy()
- end
- end
Add Comment
Please, Sign In to add comment