local Q=script.Parent.Parent.Mobile.Runs function runss()if Q.ImageTransparency==.5 then character.Humanoid.WalkSpeed=NewWalkSpeed sprinting=true while power>0 and sprinting do power=power-.03 Bar.Size=UDim2.new(power/10,0,1,0)tween:Play()wait()if power<=0 then character.Humanoid.WalkSpeed=NormalWalkSpeed end end Q.ImageTransparency=0 elseif Q.ImageTransparency==0 then character.Humanoid.WalkSpeed=NormalWalkSpeed sprinting=false while power<10 and not sprinting do power=power+.03 Bar.Size=UDim2.new(power/10,0,1,0)tween2:Play()wait()if power<=0 then character.Humanoid.WalkSpeed=NormalWalkSpeed end end Q.ImageTransparency=.5 end end Q.MouseButton1Click:connect(runss)
------------------------------------------------------------------------------------------------------------------------------------------------------------

local Button = script.Parent.Parent.Mobile.Runs

function runss()
	if Button.ImageTransparency == 0.5 then
		character.Humanoid.WalkSpeed = NewWalkSpeed
		sprinting = true
		while power > 0 and sprinting do
			power = power - 0.03
			Bar.Size = UDim2.new(power / 10, 0, 1, 0)
			--Bar.BackgroundColor3 = Bar.BackgroundColor3:lerp(Color3.fromRGB(255, 42, 42), 0.001)
			tween:Play()
			wait()
			if power <= 0 then
				character.Humanoid.WalkSpeed = NormalWalkSpeed
			end
		end

		Button.ImageTransparency = 0
	elseif Button.ImageTransparency == 0 then
		character.Humanoid.WalkSpeed = NormalWalkSpeed
		sprinting = false
		while power < 10 and not sprinting do
			power = power + 0.03
			Bar.Size = UDim2.new(power / 10, 0, 1, 0)
			--Bar.BackgroundColor3 = Bar.BackgroundColor3:lerp(Color3.fromRGB(255, 166, 11), 0.001)
			tween2:Play()
			wait()
			if power <= 0 then
				character.Humanoid.WalkSpeed = NormalWalkSpeed
			end
		end

		Button.ImageTransparency = 0.5
	end
end

Button.MouseButton1Click:connect(runss)
