local sprint = true
function updateSprint ()
local state = getControlState ( "forwards" )
local playeR = getLocalPlayer()
local speedx, speedy, speedz = getElementVelocity (playeR)
	if state and sprint == false then 
    setElementVelocity(playeR, speedx * 2, speedy * 2, speedz) 
	elseif sprint == true then 
	return 
end
end
addEventHandler ( "onClientElementStreamIn", getRootElement(), updateSprint )
function startSprint()
	if sprint then
		sprint = false
		else
		sprint = true
	end
end
bindKey ( "mouse2", "down", startSprint )
	im not even sure im going the right way about this but its not seeming to work