--//Controller//--

Humanoid.StateChanged:Connect(function(OldState, NewState)
	if NewState == Enum.HumanoidStateType.Jumping then
		local HumanoidDescription = Humanoid:GetAppliedDescription()
		
		if Settings.Scale <= 1 then
			Settings.Scale = 1
			
			HumanoidDescription.DepthScale = 1
			HumanoidDescription.WidthScale = 1
			
			Humanoid:ApplyDescription(HumanoidDescription)
			
			Humanoid.WalkSpeed = Humanoid.WalkSpeed + 4
			Humanoid.JumpPower = Humanoid.JumpPower + 15
			
			script:Destroy()
			
		else
			Settings.Scale = Settings.Scale - 0.1
			
			HumanoidDescription.DepthScale = Settings.Scale
			HumanoidDescription.WidthScale = Settings.Scale
			
			Humanoid:ApplyDescription(HumanoidDescription)
		end
	end
end)
