(to help you find my problem find sound.PlaybackLoudness)

Welp, I've been working on this and editing this and adding on to this script but one day somebody else feature caught my eye i though it was cool so i asked what he did he said he used Playback Loudness so i went to the roblox wiki searched it up didnt really explain it well so i tried it my self and i failed and that's the problem

local LocalPlayer = game:GetService("Players").LocalPlayer
local Character = LocalPlayer.Character or LocalPlayer.CharacterAdded:wait()
local Auth = {"bday09"}
local Boost = 50

local hint = Instance.new("Hint", workspace)
hint.Text = "Orb is now in game, Thanks to bday09"
for i = 1, #Auth do
   if string.lower(Character.Name) == Auth[i] then
 Character:WaitForChild("Humanoid").WalkSpeed = Character:WaitForChild("Humanoid").WalkSpeed * Boost
local Orb = Instance.new("Part", Character)
Orb.Name = "Orb"
Orb.Shape = Enum.PartType.Ball
Orb.CanCollide = false
Orb.BrickColor = BrickColor.new("Cool yellow")
Orb.Transparency = 0.25
Orb.Material = "Neon"
Orb.Size = Vector3.new(2,2,2)
Orb.Parent = Character
while true do
wait(1)
Orb.Size = Vector3.new(2,2,2)
wait(1)
Orb.Size = Vector3.new(1,1,1)
end
Orb.TopSurface = Enum.SurfaceType.Smooth
Orb.BottomSurface = Enum.SurfaceType.Smooth
local BodyPosition = Instance.new("BodyPosition", Orb)
sound = Instance.new("Sound", workspace)
sound.SoundId = "http://www.roblox.com/asset/?id=492272696"
sound.Volume = 90
sound.Pitch = 1
sound.Parent = Character
sound.Parent = Orb
sound.PlaybackLoudness = 0
sound:Play()
wait(1)
sound:Pause()
wait(3)
sound:Resume()
sound.Looped = true
local ChatService = game:GetService("Chat")
ChatService:Chat(Orb, "Curently Playing: Black Beatles", "Red")
local PE = Instance.new("ParticleEmitter", Orb)
PE.Color = ColorSequence.new(Color3.new(255/255, 234/255, 0), Color3.new(255/255, 234/255, 0))
PE.Texture = "http://www.roblox.com/asset/?id=402933094"
PE.Size = NumberSequence.new(0.2)
PE.Lifetime = NumberRange.new(0.5, 0.8)
while wait(0) do
	BodyPosition.Position = Character.Head.Position + Vector3.new(2, 1, 0)

3 comments

0

Did you even read the wiki? lol PlaybackLoudness is a read-only property that is useful in determining the current 'volume' of sound (mainly for making sound-keyed things, like music bars)

0

I read it but I asking how would I use it in a script the correct way

0

while wait() do Part.Size = Sound.PlaybackLoudness end -- profit