Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

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

Asked by 1 year ago

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

Log in to vote
0
Answered by 1 year ago

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
0
that worked! thank you so much Camsquid 2 — 1y
0
No problem fakedudeforvideo 38 — 1y
Ad
Log in to vote
0
Answered by
enes223 327 Moderation Voter
1 year ago

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

Answer this question