I think it may be an issue with filtering, but I cannot get the sound to work in game, but it works in studio. The script is a regular script. The game is Filtering = disabled.

Here is the script, if anyone could help that would be great!

while true do
	wait()
	if script.Parent.Throttle.Value > 0 then
	script.Parent.Normal.Pitch = script.Parent.BasePitch.Value + (script.Parent.MaxPitch.Value-script.Parent.BasePitch.Value)*script.Parent.Throttle.Value
	script.Parent.Normal2.Pitch = script.Parent.BasePitch.Value + (script.Parent.MaxPitch.Value-script.Parent.BasePitch.Value)*script.Parent.Throttle.Value
	script.Parent.Buzzsaw.Pitch = script.Parent.BasePitch.Value + ((script.Parent.MaxPitch.Value-script.Parent.BasePitch.Value)*script.Parent.Throttle.Value) / 5
	script.Parent.Buzzsaw2.Pitch = script.Parent.BasePitch.Value + ((script.Parent.MaxPitch.Value-script.Parent.BasePitch.Value)*script.Parent.Throttle.Value) / 5
	script.Parent.Spool.Pitch = script.Parent.BasePitch.Value + ((script.Parent.MaxPitch.Value-script.Parent.BasePitch.Value)*script.Parent.Throttle.Value) * 1.4
	script.Parent.Spool2.Pitch = script.Parent.BasePitch.Value + ((script.Parent.MaxPitch.Value-script.Parent.BasePitch.Value)*script.Parent.Throttle.Value) * 1.4
	else
	script.Parent.Normal.Pitch = script.Parent.BasePitch.Value
	script.Parent.Normal2.Pitch = script.Parent.BasePitch.Value
	script.Parent.Buzzsaw.Pitch = script.Parent.BasePitch.Value
	script.Parent.Buzzsaw2.Pitch = script.Parent.BasePitch.Value
	end
	if script.Parent.Throttle.Value > 0.8 then 
		if script.Parent.Buzzsaw:findFirstChild("PlayNormal") == nil then
		local script1 = script.PlayNormal:Clone()
		script1.Parent = script.Parent.Buzzsaw
		script1.Disabled = false
		end
		if script.Parent.Buzzsaw2:findFirstChild("PlayDelay") == nil then
		local script2 = script.PlayDelay:Clone()
		script2.Parent = script.Parent.Buzzsaw2
		script2.Disabled = false
		end
	else
		if script.Parent.Buzzsaw:findFirstChild("PlayNormal") then
			script.Parent.Buzzsaw.PlayNormal:Remove() 
			script.Parent.Buzzsaw:Stop()
		end
		if script.Parent.Buzzsaw2:findFirstChild("PlayDelay") then
			script.Parent.Buzzsaw2.PlayDelay:Remove() 
			script.Parent.Buzzsaw2:Stop()
		end
	end
	if script.Parent.Throttle.Value > 0.1 then 
		if script.Parent.Spool:findFirstChild("PlayNormal") == nil then
		local script1 = script.PlayNormal:Clone()
		script1.Parent = script.Parent.Spool
		script1.Disabled = false
		end
		if script.Parent.Spool2:findFirstChild("PlayDelay") == nil then
		local script2 = script.PlayDelay:Clone()
		script2.Parent = script.Parent.Spool2
		script2.Disabled = false
		end
	else
		if script.Parent.Spool:findFirstChild("PlayNormal") then
			script.Parent.Spool.PlayNormal:Remove() 
			script.Parent.Spool:Stop()
		end
		if script.Parent.Spool2:findFirstChild("PlayDelay") then
			script.Parent.Spool2.PlayDelay:Remove() 
			script.Parent.Spool2:Stop()
		end
	end
	if script.Parent.On.Value == true then
		if script.Parent.Normal:findFirstChild("PlayNormal") == nil then
		local script1 = script.PlayNormal:Clone()
		script1.Parent = script.Parent.Normal
		script1.Disabled = false
		end
		if script.Parent.Normal2:findFirstChild("PlayDelay") == nil then
		local script2 = script.PlayDelay:Clone()
		script2.Parent = script.Parent.Normal2
		script2.Disabled = false
		end
	else 
		if script.Parent.Normal:findFirstChild("PlayNormal") then
			script.Parent.Normal.PlayNormal:Remove() 
			script.Parent.Normal:Stop()
		end
		if script.Parent.Normal2:findFirstChild("PlayDelay") then
			script.Parent.Normal2.PlayDelay:Remove() 
			script.Parent.Normal2:Stop()
		end
	end
end


6 comments

0

Where's script located?

0

I can assure you it has something to do with Filtering Enabled, and it might seem complicated but you should reeallllly make your game have Filtering Enabled.

0

Also use elsef instead of else if

0

Script is located within a model.

0

Filtering Enabled was already removed. What it is set to in studio doesn't matter. https://devforum.roblox.com/t/removal-of-experimental-mode/152807

0

Filtering Enabled was not removed.