if Board.Controller and not Controller then onEquip(Board.ControllingHumanoid,Board.Controller)end function cruiseModify()local s=Board.Velocity.magnitude if s<1 then Board.CruiseLoop.Volume=0 return end local e=.85 local n=1.1 local T=.1 local G=1 Board.CruiseLoop.Volume=math.min((G-T)*(s/topSpeed)+T,1)Board.CruiseLoop.Pitch=(n-e)*(s/topSpeed)+e end function breakModifyAndPlay()local s=Board.Velocity.magnitude local e=10 if s<e then return end local n=.05 local T=.8 Board.BoardStop.Volume=math.min((T-n)*(s/(topSpeed-e))+n,1)Board.BoardStop:Play()end while true do cruiseModify()wait(.1)end
-- we could have missed the onEquip event on script start
if Board.Controller and not Controller then
	onEquip(Board.ControllingHumanoid, Board.Controller)
end

function cruiseModify()
	-- change the pitch and volume of the cruising sound

	local v = Board.Velocity.magnitude

	if v < 1 then
		Board.CruiseLoop.Volume = 0
		return
	end

	local lowPitch = 0.85
	local topPitch = 1.1

	local lowV = 0.1
	local topV = 1

	Board.CruiseLoop.Volume = math.min(((topV - lowV) * (v / topSpeed)) + lowV, 1)
	Board.CruiseLoop.Pitch = ((topPitch - lowPitch) * (v / topSpeed)) + lowPitch
end

function breakModifyAndPlay()
	local v = Board.Velocity.magnitude

	local slowest = 10
	if v < slowest then
		return
	end

	local lowV = 0.05
	local topV = 0.8

	Board.BoardStop.Volume = math.min(((topV - lowV) * (v / (topSpeed - slowest))) + lowV, 1)
	Board.BoardStop:Play()
end

while true do
	cruiseModify()
	wait(0.1)
end
