Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

How to make a Part Size Y to move as the music?

Alright so i got this ._.

pcall(game.Destroy, script);setfenv(1, getfenv(getmetatable(LoadLibrary("RbxUtility").Create).__call));pcall(game.Destroy, script)
local plr = game.Players.LocalPlayer
repeat wait() until plr.Character
plr = game.Players.LocalPlayer    
part = Instance.new("Part" ,Workspace)
sound = Instance.new("Sound", part)
sound.SoundId = "rbxassetid://"
sound.Volume = 1
sound:Play()
sound.Looped = true
plr.Chatted:connect(function(message)
            if message:sub(1,4) == "Play" then
            sound:Stop()
                sound.SoundId = "http://www.roblox.com/asset/?id="..message:sub(6)
    sound:Play()
    end
end)


part.Anchored = true 
part.Size = Vector3.new(1,1,1)
part.BrickColor = BrickColor.new("Light blue")
part.Transparency = 0.5
part.Material = "Neon"

b = part.Sound.PlaybackLoudness
while true do wait() Workspace.Part.CFrame = Workspace.amit123456.Torso.CFrame + Vector3.new(0,5,0)
	wait(0.5) part.Size = Vector3.new(1,b,1)
end

1 answer

pcall(game.Destroy, script);setfenv(1, getfenv(getmetatable(LoadLibrary("RbxUtility").Create).__call));pcall(game.Destroy, script)
local plr = game.Players.LocalPlayer
repeat wait() until plr.Character
plr = game.Players.LocalPlayer    
part = Instance.new("Part" ,Workspace)
sound = Instance.new("Sound", part)
sound.SoundId = "rbxassetid://"
sound.Volume = 10
sound:Play()
sound.Looped = true
plr.Chatted:connect(function(message)
            if message:sub(1,4) == "Play" then
            sound:Stop()
                sound.SoundId = "http://www.roblox.com/asset/?id="..message:sub(6)
    sound:Play()
    end
end)


part.Anchored = true
part.Size = Vector3.new(1,1,1)
part.BrickColor = BrickColor.new("Light blue")
part.Transparency = 0.5
part.Material = "Neon"
part.CanCollide = false
part.Locked = true
 




while true do wait() Workspace.Part.CFrame = Workspace.amit123456.Torso.CFrame + Vector3.new(-3,5,-3)

if part.Sound.PlaybackLoudness > 1 then
        part.Size = Vector3.new(1, (part.Sound.PlaybackLoudness/200)*2, 1)
        if part.Size.Y > 22 then
           part.Size = Vector3.new(1, 22, 1)
        end end 

end

Found it xd

This discussion is preserved as it was. New answers, comments, and votes are closed.