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

is it possible to make audio speed up based on player speed?

to explain it further, if playbackspeed was 1, and player speed was 16, is there any possible way to make the playbackspeed increase with player speed?

2 answers

✓ Accepted answer

Maybe you could make a script that analyses the player speed

--//LOCAL SCRIPT Inside of the Sound
local player = game.Players.LocalPlayer
local char = player.Character or player.CharacterAdded:Wait()
while true do
	if char:WaitForChild("Humanoid").WalkSpeed > 16 then
		if char:WaitForChild("Humanoid").WalkSpeed == 32 then
			script.Parent.PlaybackSpeed = 2
		elseif char:WaitForChild("Humanoid").WalkSpeed == 48 then
			script.Parent.PlaybackSpeed = 3
		
		end
	end
	wait(0.1)
end

2 comments

0

that worked! thank you so much

0

No problem

hey you! have you ever heard of enes? if you are in trouble, better call enes!

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