Advertisement
Arcaneee

fuckmap

Dec 13th, 2022 (edited)
41
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.96 KB | None | 0 0
  1. -- Play the sound per part & Call upon the TweenService --
  2.             local corruptsnd = Instance.new("Sound", workspace)
  3.             corruptsnd.Volume = 1
  4.             corruptsnd.SoundId = "rbxassetid://7534241209"
  5.             corruptsnd.Name = "CorruptSound"
  6.            
  7.             local tweenService = game:GetService("TweenService")
  8.             local Info = TweenInfo.new(.1, Enum.EasingStyle.Bounce, Enum.EasingDirection.Out, 0, false, 0)
  9.    
  10.             local child = workspace:GetDescendants()
  11.             for i, v in pairs(child) do
  12.             if v:IsA("Part") or v:IsA("UnionOperation") or v:IsA("MeshPart") then
  13.             if v.Locked == false then
  14.             local RandomSizeX = math.random(1, 1000)/10
  15.             local RandomSizeY = math.random(1, 1000)/10
  16.             local RandomSizeZ = math.random(1, 1000)/10
  17.             corruptsnd.PlaybackSpeed=math.random(1, 20) / 10
  18.             corruptsnd:Play()
  19.             local part = v
  20.             local goal = {Size = Vector3.new(RandomSizeX, RandomSizeY, RandomSizeZ)}
  21.             local tween = tweenService:Create(part, Info, goal)
  22.             tween:Play()
  23.             end
  24.             end
  25.             end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement