Hello there,
havent posted in a while, but yeah.
I am making a tank script, and when it accelerates the playback speed changes. But it prints out nothing, even printing “changed” doesnt work.
It always says a error so i made it that the speed is a value,
this is the one for the speed value.
local spd = script.Parent.Parent.Parent.Base.Velocity.Magnitude
while true do
wait(0.1)
script.Parent.Value = spd
end
This seems to be working, but this is the localscript under the sound.
local spd = script.Parent.Parent.Speed
spd.Changed:Connect(function(spdd)
local spddd = tonumber(spdd)
local spdddd = spddd / 48
print("changed")
script.Parent.Parent.IDLE_SFX_TANK.PlaybackSpeed = spdddd
script.Parent.Parent.IDLE_SFX_TANK:Pause()
wait(0.1)
script.Parent.Parent.IDLE_SFX_TANK:Play()
end)
btw it doenst matter if it is played or not it still doenst work
These are the locations.
Can someone help, thanks!
Nice day!