Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- Play the sound per part & Call upon the TweenService --
- local corruptsnd = Instance.new("Sound", workspace)
- corruptsnd.Volume = 1
- corruptsnd.SoundId = "rbxassetid://7534241209"
- corruptsnd.Name = "CorruptSound"
- local tweenService = game:GetService("TweenService")
- local Info = TweenInfo.new(.1, Enum.EasingStyle.Bounce, Enum.EasingDirection.Out, 0, false, 0)
- local child = workspace:GetDescendants()
- for i, v in pairs(child) do
- if v:IsA("Part") or v:IsA("UnionOperation") or v:IsA("MeshPart") then
- if v.Locked == false then
- local RandomSizeX = math.random(1, 1000)/10
- local RandomSizeY = math.random(1, 1000)/10
- local RandomSizeZ = math.random(1, 1000)/10
- corruptsnd.PlaybackSpeed=math.random(1, 20) / 10
- corruptsnd:Play()
- local part = v
- local goal = {Size = Vector3.new(RandomSizeX, RandomSizeY, RandomSizeZ)}
- local tween = tweenService:Create(part, Info, goal)
- tween:Play()
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement